diff options
Diffstat (limited to 'lib/pure/re.nim')
-rwxr-xr-x | lib/pure/re.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/re.nim b/lib/pure/re.nim index f854c07e5..87fe79a04 100755 --- a/lib/pure/re.nim +++ b/lib/pure/re.nim @@ -224,7 +224,7 @@ proc replace*(s: string, sub: TRegEx, by: string): string = ## with the notation ``$i`` and ``$#`` (see strutils.`%`). Examples: ## ## .. code-block:: nimrod - ## "var1=key; var2=key2".replace(p"{\ident}'='{\ident}", "$1<-$2$2") + ## "var1=key; var2=key2".replace(re"{\ident}'='{\ident}", "$1<-$2$2") ## ## Results in: ## |