about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libsyntax/tokenstream.rs2
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] {