summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorHéctor M. Monacci <hector.monacci@gmail.com>2021-03-19 15:19:41 -0300
committerGitHub <noreply@github.com>2021-03-19 11:19:41 -0700
commit8e8bea9044f0ae1f0583cb6130f6fbac390bf26a (patch)
tree17581fd0452b681115dd7f5cad22e89a52075424 /lib
parente332c20ba7f0fffc0ad42751a99e11232973f27f (diff)
downloadNim-8e8bea9044f0ae1f0583cb6130f6fbac390bf26a.tar.gz
Clarify behaviour of char replace (#17339)
Clarify behaviour of char replace by adding ```every ocurrence of character```
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 36a211545..510f0682d 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -2079,7 +2079,7 @@ func replace*(s, sub: string, by = ""): string {.rtl,
 
 func replace*(s: string, sub, by: char): string {.rtl,
     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
   ## characters.