bugfixes: tests are green again

This commit is contained in:
Araq
2012-01-13 23:28:08 +01:00
parent 9460f7cc4e
commit 4cfc0462a4
2 changed files with 3 additions and 2 deletions

View File

@@ -677,7 +677,7 @@ proc replace*(s: string, sub, by: char): string {.noSideEffect,
inc(i)
proc replaceWord*(s, sub: string, by = ""): string {.noSideEffect,
rtl, extern: "nsuReplaceStr".} =
rtl, extern: "nsuReplaceWord".} =
## Replaces `sub` in `s` by the string `by`. Each occurance of `sub`
## has to be surrounded by word boundaries (comparable to ``\\w`` in
## regular expressions), otherwise it is not replaced.