fix spelling of "backtrack"

This commit is contained in:
Nicolas Abril 2024-07-02 17:17:26 +02:00 committed by GitHub
parent 8ad65d7f6a
commit e49fd840ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -495,7 +495,7 @@ impl<'a> TermParser<'a> {
self.skip_trivia();
let (cur_name, rule) = self.parse_rule()?;
let mut rules = vec![rule];
// the current index to backtack in case of fail to parse the next rule.
// the current index to backtrack in case of fail to parse the next rule.
let mut nxt_term = *self.index();
loop {
self.skip_trivia();