mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
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:
committed by
GitHub
parent
d8b5879c7d
commit
76a3b350ce
@@ -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>`_
|
||||
|
||||
Reference in New Issue
Block a user