Skip to content

Commit b9a44ee

Browse files
authored
regex: fix misspelled word "firts" in replace_n description (#23514)
1 parent c94e1e0 commit b9a44ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/regex/regex_util.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub fn (mut re RE) replace(in_txt string, repl_str string) string {
509509
return res.str()
510510
}
511511

512-
// replace_n return a string where the firts count matches are replaced with the repl_str string,
512+
// replace_n return a string where the first count matches are replaced with the repl_str string,
513513
// if count is > 0 the replace began from the start of the string toward the end
514514
// if count is < 0 the replace began from the end of the string toward the start
515515
// if count is 0 do nothing

0 commit comments

Comments
 (0)