mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
regex: fix misspelled word "firts" in replace_n description (#23514)
This commit is contained in:
parent
c94e1e05f6
commit
b9a44ee0cf
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ pub fn (mut re RE) replace(in_txt string, repl_str string) string {
|
|||
return res.str()
|
||||
}
|
||||
|
||||
// replace_n return a string where the firts count matches are replaced with the repl_str string,
|
||||
// replace_n return a string where the first count matches are replaced with the repl_str string,
|
||||
// if count is > 0 the replace began from the start of the string toward the end
|
||||
// if count is < 0 the replace began from the end of the string toward the start
|
||||
// if count is 0 do nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue