Skip to content

Commit 5ce244d

Browse files
committed
Fix out-of-date comment.
1 parent 73452c9 commit 5ce244d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast/src/token.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl Lit {
104104
}
105105
}
106106

107-
/// Keep this in sync with `Token::can_begin_literal_or_bool` excluding unary negation.
107+
/// Keep this in sync with `Token::can_begin_literal_maybe_minus` excluding unary negation.
108108
pub fn from_token(token: &Token) -> Option<Lit> {
109109
match token.uninterpolate().kind {
110110
Ident(name, IdentIsRaw::No) if name.is_bool_lit() => Some(Lit::new(Bool, name, None)),

0 commit comments

Comments
 (0)