mirror of
https://github.com/vlang/v.git
synced 2025-09-22 20:09:04 -04:00
string: fix replace_each edge case error message
This commit is contained in:
parent
0f2f97e3e5
commit
7b39ab6d06
@ -223,7 +223,7 @@ pub fn (s string) replace_each(vals []string) string {
|
||||
return s
|
||||
}
|
||||
if vals.len % 2 != 0 {
|
||||
println('string.replace_many(): odd number of strings')
|
||||
println('string.replace_each(): odd number of strings')
|
||||
return s
|
||||
}
|
||||
// `rep` - string to replace
|
||||
|
Loading…
x
Reference in New Issue
Block a user