1
Fork 0

Fix a typo in a comment.

This commit is contained in:
Nicholas Nethercote 2023-07-31 11:10:25 +10:00
parent d16b1f4a8c
commit cfc1aa3c5d

View file

@ -265,9 +265,9 @@ impl TokenCursor {
#[inline(always)] #[inline(always)]
fn inlined_next(&mut self) -> (Token, Spacing) { fn inlined_next(&mut self) -> (Token, Spacing) {
loop { loop {
// FIXME: we currently don't return `Delimiter` open/close delims. To fix #67062 we will // FIXME: we currently don't return `Delimiter::Invisible` open/close delims. To fix
// need to, whereupon the `delim != Delimiter::Invisible` conditions below can be // #67062 we will need to, whereupon the `delim != Delimiter::Invisible` conditions
// removed. // below can be removed.
if let Some(tree) = self.tree_cursor.next_ref() { if let Some(tree) = self.tree_cursor.next_ref() {
match tree { match tree {
&TokenTree::Token(ref token, spacing) => { &TokenTree::Token(ref token, spacing) => {