summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-04-05 22:58:07 +0200
committerGitHub <noreply@github.com>2021-04-05 22:58:07 +0200
commitf4a19ca851c16215a3eaf0d38048bf114ee1aa1e (patch)
tree63be19d53e9f674f2a3633685318330d5e4d498a
parent5a7a0ac51eefbdacc5b1763f8d49a787407afb34 (diff)
downloadrust-f4a19ca851c16215a3eaf0d38048bf114ee1aa1e.tar.gz
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>>);