Skip to content

Commit 7394242

Browse files
nrcalexcrichton
andauthored
Update posts/2018-12-21-Procedural-Macros-in-Rust-2018.md
Co-Authored-By: alexcrichton <alex@alexcrichton.com>
1 parent 01e2348 commit 7394242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2018-12-21-Procedural-Macros-in-Rust-2018.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ and you don't even need to explicitly depend on `serde_derive` in `Cargo.toml`!
154154
This mysterious `TokenStream` type comes from the [compiler-provided
155155
`proc_macro` crate][pm]. When it was first added all you could do with a
156156
[`TokenStream`] was call convert it to or from a string using `to_string()` or `parse()`.
157-
As of Rust 2018, the [`TokenStream`] type provides a much larger stable API.
157+
As of Rust 2018, you can act on the tokens in a [`TokenStream`] directly.
158158

159159
As its name might imply, a `TokenStream` can be thought of as a stream of
160160
tokens, or a list of tokens. Each token is called a [`TokenTree`] and represents

0 commit comments

Comments
 (0)