Skip to content

Commit

Permalink
Update PR 259: tokens are the output of the program
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 23, 2023
1 parent 419109a commit ec44da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ written to a file; the conversion from tokens to source code is lossy.
Example usage in build.rs:

```rust
let input = quote! { ... };
let syntax_tree = syn::parse2(input).unwrap();
let output = quote! { ... };
let syntax_tree = syn::parse2(output).unwrap();
let formatted = prettyplease::unparse(&syntax_tree);

let out_dir = env::var_os("OUT_DIR").unwrap();
Expand Down

0 comments on commit ec44da1

Please sign in to comment.