all: fix typos in comments (#20963)

This commit is contained in:
cui fliter 2024-03-05 00:41:55 +08:00 committed by GitHub
parent a58f980b02
commit 78602846e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 29 additions and 29 deletions

View file

@ -22,7 +22,7 @@ pub fn new() RE {
// init regex
mut re := RE{}
re.prog = []Token{len: max_code_len + 1} // max program length, can not be longer then the pattern
re.cc = []CharClass{len: max_code_len} // can not be more char class the the length of the pattern
re.cc = []CharClass{len: max_code_len} // can not be more char class the length of the pattern
re.group_csave_flag = false // enable continuos group saving
re.group_max_nested = 128 // set max 128 group nested
re.group_max = max_code_len >> 1 // we can't have more groups than the half of the pattern legth
@ -38,7 +38,7 @@ pub fn regex_opt(pattern string) !RE {
// init regex
mut re := RE{}
re.prog = []Token{len: pattern.len + 1} // max program length, can not be longer then the pattern
re.cc = []CharClass{len: pattern.len} // can not be more char class the the length of the pattern
re.cc = []CharClass{len: pattern.len} // can not be more char class the length of the pattern
re.group_csave_flag = false // enable continuos group saving
re.group_max_nested = pattern.len >> 1 // set max 128 group nested
re.group_max = pattern.len >> 1 // we can't have more groups than the half of the pattern legth

View file

@ -20,7 +20,7 @@ pub fn regex_base(pattern string) (RE, int, int) {
// init regex
mut re := RE{}
re.prog = []Token{len: pattern.len + 1} // max program length, can not be longer then the pattern
re.cc = []CharClass{len: pattern.len} // can not be more char class the the length of the pattern
re.cc = []CharClass{len: pattern.len} // can not be more char class the length of the pattern
re.group_csave_flag = false // enable continuos group saving
re.group_max_nested = pattern.len >> 1 // set max 128 group nested
re.group_max = pattern.len >> 1 // we can't have more groups than the half of the pattern legth