From 12e4a62b44c1acea540a0c34f8f4471b4497e433 Mon Sep 17 00:00:00 2001 From: Johanna Berewinkel Date: Wed, 4 Mar 2015 09:05:30 +0100 Subject: Fixed examples in the documentation of module re (proc replace and proc replacef) --- lib/impure/re.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/impure/re.nim') 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: ## -- cgit 1.4.1-2-gfad0