From: Ikko Eltociear Ashimine Date: Mon, 15 Apr 2024 16:40:27 +0000 (+0900) Subject: whisper : update grammar-parser.cpp (whisper/2058) X-Git-Tag: upstream/0.0.1642~715 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ebf55f4582c208d91783595e90b830fccbe3f8c0;p=pkg%2Fggml%2Fsources%2Fggml whisper : update grammar-parser.cpp (whisper/2058) preceeding -> preceding --- diff --git a/examples/whisper/grammar-parser.cpp b/examples/whisper/grammar-parser.cpp index 2daaaef4..6133b8c7 100644 --- a/examples/whisper/grammar-parser.cpp +++ b/examples/whisper/grammar-parser.cpp @@ -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