diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-08-06 23:46:28 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-08-06 23:46:28 -0700 |
| commit | daa5bd35a8746126a4af014d135ddb8bc442b9e6 (patch) | |
| tree | b5ad3aa7091c55b5541feb2d94fa7cef5d4f1915 /src/libsyntax/tokenstream.rs | |
| parent | cce4ea5149e28b938d0af8466dd9af1e489f1b55 (diff) | |
| download | rust-daa5bd35a8746126a4af014d135ddb8bc442b9e6.tar.gz rust-daa5bd35a8746126a4af014d135ddb8bc442b9e6.zip | |
fix typo
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
| -rw-r--r-- | src/libsyntax/tokenstream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs index ef914e8de53..f84b5307a11 100644 --- a/src/libsyntax/tokenstream.rs +++ b/src/libsyntax/tokenstream.rs @@ -186,7 +186,7 @@ impl TokenStream { /// Given a `TokenStream` with a `Stream` of only two arguments, return a new `TokenStream` /// separating the two arguments with a comma for diagnostic suggestions. pub(crate) fn add_comma(&self) -> Option<(TokenStream, Span)> { - // Used ot suggest if a user writes `println!("{}" a);` + // Used to suggest if a user writes `println!("{}" a);` if let TokenStreamKind::Stream(ref slice) = self.kind { if slice.len() == 2 { let comma_span = match slice[0] { |
