Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Aug 7, 2018
1 parent cce4ea5 commit daa5bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/tokenstream.rs
Expand Up @@ -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] {
Expand Down

0 comments on commit daa5bd3

Please sign in to comment.