fix replacef typo in example
This commit is contained in:
parent
f55d094cf2
commit
dd422bfb0f
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ proc replacef*(s: string, sub: Regex, by: string): string =
|
||||||
##
|
##
|
||||||
## .. code-block:: nim
|
## .. code-block:: nim
|
||||||
##
|
##
|
||||||
## "var1<-keykey; val2<-key2key2"
|
## "var1<-keykey; var2<-key2key2"
|
||||||
result = ""
|
result = ""
|
||||||
var caps: array[MaxSubpatterns, string]
|
var caps: array[MaxSubpatterns, string]
|
||||||
var prev = 0
|
var prev = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue