Skip to content

Commit daa5bd3

Browse files
committed
fix typo
1 parent cce4ea5 commit daa5bd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/tokenstream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl TokenStream {
186186
/// Given a `TokenStream` with a `Stream` of only two arguments, return a new `TokenStream`
187187
/// separating the two arguments with a comma for diagnostic suggestions.
188188
pub(crate) fn add_comma(&self) -> Option<(TokenStream, Span)> {
189-
// Used ot suggest if a user writes `println!("{}" a);`
189+
// Used to suggest if a user writes `println!("{}" a);`
190190
if let TokenStreamKind::Stream(ref slice) = self.kind {
191191
if slice.len() == 2 {
192192
let comma_span = match slice[0] {

0 commit comments

Comments
 (0)