Clarify behaviour of char replace (#17339)
Clarify behaviour of char replace by adding ```every ocurrence of character```
This commit is contained in:
parent
e332c20ba7
commit
8e8bea9044
1 changed files with 1 additions and 1 deletions
|
|
@ -2079,7 +2079,7 @@ func replace*(s, sub: string, by = ""): string {.rtl,
|
||||||
|
|
||||||
func replace*(s: string, sub, by: char): string {.rtl,
|
func replace*(s: string, sub, by: char): string {.rtl,
|
||||||
extern: "nsuReplaceChar".} =
|
extern: "nsuReplaceChar".} =
|
||||||
## Replaces `sub` in `s` by the character `by`.
|
## Replaces every occurence of character `sub` in `s` by the character `by`.
|
||||||
##
|
##
|
||||||
## Optimized version of `replace <#replace,string,string,string>`_ for
|
## Optimized version of `replace <#replace,string,string,string>`_ for
|
||||||
## characters.
|
## characters.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue