string: fix replace_each edge case error message

pull/4607/head
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
1 changed files with 1 additions and 1 deletions

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