Skip to content

Commit

Permalink
whisper : update grammar-parser.cpp (ggerganov#2058)
Browse files Browse the repository at this point in the history
preceeding -> preceding
  • Loading branch information
eltociear authored and iThalay committed Sep 23, 2024
1 parent 37e7772 commit e0e58b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/grammar-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ namespace grammar_parser {
pos = parse_space(pos + 1, is_nested);
} else if (*pos == '*' || *pos == '+' || *pos == '?') { // repetition operator
if (last_sym_start == out_elements.size()) {
throw std::runtime_error(std::string("expecting preceeding item to */+/? at ") + pos);
throw std::runtime_error(std::string("expecting preceding item to */+/? at ") + pos);
}

// apply transformation to previous symbol (last_sym_start to end) according to
Expand Down

0 comments on commit e0e58b0

Please sign in to comment.