1
Fork 0

Rollup merge of #83903 - rust-lang:GuillaumeGomez-patch-1, r=lcnr

Fix typo in TokenStream documentation
This commit is contained in:
Dylan DPC 2021-04-06 17:42:33 +02:00 committed by GitHub
commit 38a8fa8421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,7 @@ impl<CTX> HashStable<CTX> for LazyTokenStream {
/// The goal is for procedural macros to work with `TokenStream`s and `TokenTree`s
/// instead of a representation of the abstract syntax tree.
/// Today's `TokenTree`s can still contain AST via `token::Interpolated` for
/// backwards compatability.
/// backwards compatibility.
#[derive(Clone, Debug, Default, Encodable, Decodable)]
pub struct TokenStream(pub(crate) Lrc<Vec<TreeAndSpacing>>);