1
0
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:
Larpon 2020-04-26 12:40:39 +02:00 committed by GitHub
parent 0f2f97e3e5
commit 7b39ab6d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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