mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: fix typos in comments (#20963)
This commit is contained in:
parent
a58f980b02
commit
78602846e5
21 changed files with 29 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue