summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-06 17:42:33 +0200
committerGitHub <noreply@github.com>2021-04-06 17:42:33 +0200
commit38a8fa842165aa7c42c35eab654af1559f9badfa (patch)
treea6e16afc95d4d17a29e5bda9acb7d955e104b742
parent8cee7b79476b63931b9c36dc8f46fff4c4c7bb6d (diff)
parentf4a19ca851c16215a3eaf0d38048bf114ee1aa1e (diff)
downloadrust-38a8fa842165aa7c42c35eab654af1559f9badfa.tar.gz
Rollup merge of #83903 - rust-lang:GuillaumeGomez-patch-1, r=lcnr
Fix typo in TokenStream documentation
-rw-r--r--compiler/rustc_ast/src/tokenstream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs
index 06d49c7524a..1c26668779f 100644
--- a/compiler/rustc_ast/src/tokenstream.rs
+++ b/compiler/rustc_ast/src/tokenstream.rs
@@ -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>>);