summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorJohanna Berewinkel <jbe@berewinkel-sys.de>2015-03-04 09:05:30 +0100
committerJohanna Berewinkel <jbe@berewinkel-sys.de>2015-03-04 09:05:30 +0100
commit12e4a62b44c1acea540a0c34f8f4471b4497e433 (patch)
treea9bffee38b5c48fcc0ac2b7f779d5b63652c2f3f /lib/impure
parentb1656f2db43213e3ceb509593ec6c4112905f740 (diff)
downloadNim-12e4a62b44c1acea540a0c34f8f4471b4497e433.tar.gz
Fixed examples in the documentation of module re (proc replace and proc replacef)
Diffstat (limited to 'lib/impure')
-rw-r--r--lib/impure/re.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim
index 7d5ff8948..dcdc2f07e 100644
--- a/lib/impure/re.nim
+++ b/lib/impure/re.nim
@@ -291,7 +291,7 @@ proc replace*(s: string, sub: Regex, by = ""): string =
   ## accessed in `by`. Examples:
   ##
   ## .. code-block:: nim
-  ##   "var1=key; var2=key2".replace(re"(\w+)'='(\w+)")
+  ##   "var1=key; var2=key2".replace(re"(\w+)=(\w+)")
   ##
   ## Results in:
   ##
@@ -313,7 +313,7 @@ proc replacef*(s: string, sub: Regex, by: string): string =
   ## with the notation ``$i`` and ``$#`` (see strutils.`%`). Examples:
   ##
   ## .. code-block:: nim
-  ## "var1=key; var2=key2".replacef(re"(\w+)'='(\w+)", "$1<-$2$2")
+  ##   "var1=key; var2=key2".replacef(re"(\w+)=(\w+)", "$1<-$2$2")
   ##
   ## Results in:
   ##