Skip to content

Commit

Permalink
regex: fix misspelled word "firts" in replace_n description (#23514)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier authored Jan 19, 2025
1 parent c94e1e0 commit b9a44ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/regex/regex_util.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9a44ee

Please sign in to comment.