diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-04-17 22:08:49 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-04-17 22:08:49 +0200 |
commit | 3501bfc8fff8333b7c2080f98486515be2f190b8 (patch) | |
tree | e4bbb059f823c8fc9c30d15bffbb6984694ceb5f /lib/pure | |
parent | d9370a2f2187872d0db775a4a2312cf2621487e2 (diff) | |
parent | cee08adebbe70614d7bd875cfe2211e31fca71a7 (diff) | |
download | Nim-3501bfc8fff8333b7c2080f98486515be2f190b8.tar.gz |
Merge pull request #2570 from apense/patch-3
Corrected code example in pegs
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/pegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 7cef0a00d..53b09a706 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -902,7 +902,7 @@ proc replacef*(s: string, sub: Peg, by: string): string {. ## with the notation ``$i`` and ``$#`` (see strutils.`%`). Examples: ## ## .. code-block:: nim - ## "var1=key; var2=key2".replace(peg"{\ident}'='{\ident}", "$1<-$2$2") + ## "var1=key; var2=key2".replacef(peg"{\ident}'='{\ident}", "$1<-$2$2") ## ## Results in: ## |