Clarify behaviour of ``replace`` (#17337)

* Clarify behaviour of ```replace```

Clarify behaviour of ```replace``` by adding the word ```every```

* Update lib/pure/strutils.nim

Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
Héctor M. Monacci
2021-03-11 10:05:57 -03:00
committed by GitHub
parent d8b5879c7d
commit 76a3b350ce

View File

@@ -2037,7 +2037,7 @@ func contains*(s: string, chars: set[char]): bool =
func replace*(s, sub: string, by = ""): string {.rtl,
extern: "nsuReplaceStr".} =
## Replaces `sub` in `s` by the string `by`.
## Replaces every occurence of `sub` in `s` by the string `by`.
##
## See also:
## * `find func<#find,string,string,Natural,int>`_