Fix out-of-date comment.
This commit is contained in:
parent
c14d9ae23e
commit
dbed10a6a2
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue