Skip to content

Commit db466d2

Browse files
wugeeriffyio
andauthored
Update src/parser/mod.rs
Good idea. Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
1 parent 61b2b77 commit db466d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ impl<'a> Parser<'a> {
11751175
),
11761176
})
11771177
}
1178-
Token::ExclamationMark if !self.dialect.supports_factorial_operator() => {
1178+
Token::ExclamationMark if self.dialect.supports_bang_not_operator() => {
11791179
Ok(Expr::UnaryOp {
11801180
op: UnaryOperator::SpecialNot,
11811181
expr: Box::new(

0 commit comments

Comments
 (0)