From daa5bd35a8746126a4af014d135ddb8bc442b9e6 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Mon, 6 Aug 2018 23:46:28 -0700 Subject: fix typo --- src/libsyntax/tokenstream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax') 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] { -- cgit 1.4.1-3-g733a5