Fix out-of-date comment.

This commit is contained in:
Nicholas Nethercote 2024-03-20 08:04:36 +11:00
parent c14d9ae23e
commit dbed10a6a2

View File

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