Skip to content

Commit

Permalink
Update src/parser/mod.rs
Browse files Browse the repository at this point in the history
Good idea.

Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
  • Loading branch information
wugeer and iffyio authored Oct 19, 2024
1 parent 61b2b77 commit db466d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ impl<'a> Parser<'a> {
),
})
}
Token::ExclamationMark if !self.dialect.supports_factorial_operator() => {
Token::ExclamationMark if self.dialect.supports_bang_not_operator() => {
Ok(Expr::UnaryOp {
op: UnaryOperator::SpecialNot,
expr: Box::new(
Expand Down

0 comments on commit db466d2

Please sign in to comment.