]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
grammar-parser : fix typo (#4318)
authorIkko Eltociear Ashimine <redacted>
Mon, 4 Dec 2023 07:57:35 +0000 (16:57 +0900)
committerGitHub <redacted>
Mon, 4 Dec 2023 07:57:35 +0000 (09:57 +0200)
preceeding -> preceding

common/grammar-parser.cpp

index ff51cc8034c8b9247f8fe24872cc529a754b7faa..bf89a96f3617f8978602a4f70a2ae8668f078b97 100644 (file)
@@ -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