Skip to content

Commit 4f23974

Browse files
committed
Update comments now that get_precedence is no more
1 parent dc26c4a commit 4f23974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sqlparser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,13 @@ impl Parser {
574574
self.expected("IN or BETWEEN after NOT", self.peek_token())
575575
}
576576
}
577-
// Can only happen if `get_precedence` got out of sync with this function
577+
// Can only happen if `get_next_precedence` got out of sync with this function
578578
_ => panic!("No infix parser for token {:?}", tok),
579579
}
580580
} else if Token::DoubleColon == tok {
581581
self.parse_pg_cast(expr)
582582
} else {
583-
// Can only happen if `get_precedence` got out of sync with this function
583+
// Can only happen if `get_next_precedence` got out of sync with this function
584584
panic!("No infix parser for token {:?}", tok)
585585
}
586586
}
@@ -636,7 +636,7 @@ impl Parser {
636636
/// Get the precedence of the next token
637637
pub fn get_next_precedence(&self) -> Result<u8, ParserError> {
638638
if let Some(token) = self.peek_token() {
639-
debug!("get_precedence() {:?}", token);
639+
debug!("get_next_precedence() {:?}", token);
640640

641641
match &token {
642642
Token::SQLWord(k) if k.keyword == "OR" => Ok(5),

0 commit comments

Comments
 (0)