From 0f4b813c6f905767d397276759fbb8ad7efca467 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Tue, 16 Apr 2024 00:36:29 +0900 Subject: [PATCH] whisper: update grammar-parser.cpp preceeding -> preceding --- examples/grammar-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/grammar-parser.cpp b/examples/grammar-parser.cpp index 2daaaef4504..6133b8c7fc2 100644 --- a/examples/grammar-parser.cpp +++ b/examples/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