tweak comment on NonterminalKind::Expr

Co-authored-by: Eric Holk <eric@theincredibleholk.org>
This commit is contained in:
Michael Goulet 2024-07-31 15:37:55 -04:00 committed by GitHub
parent 6b731c2e7d
commit 79ef91e879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,7 +48,7 @@ fn may_be_ident(nt: &token::Nonterminal) -> bool {
} }
// Current edition expressions // Current edition expressions
NonterminalKind::Expr(Expr) => { NonterminalKind::Expr(Expr) => {
// In Edition 2024, `_` will be considered an expression, so we // In Edition 2024, `_` is considered an expression, so we
// need to allow it here because `token.can_begin_expr()` does // need to allow it here because `token.can_begin_expr()` does
// not consider `_` to be an expression. // not consider `_` to be an expression.
// //