regex: fix misspelled word "firts" in replace_n description (#23514)

This commit is contained in:
Kim Shrier 2025-01-19 04:15:06 -07:00 committed by GitHub
parent c94e1e05f6
commit b9a44ee0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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