mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03: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…
Reference in New Issue
Block a user