diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2018-06-28 23:13:49 -0700 |
---|---|---|
committer | Varriount <Varriount@users.noreply.github.com> | 2018-06-29 02:13:49 -0400 |
commit | 4deda6b73253ee98bf112ad43d0c37562899db2c (patch) | |
tree | 3bf997507b89cc5ce04950b48baff3b1f5f8e527 /lib/impure | |
parent | cc7479b70f3f6aeb066229ab451facf3f1eff77f (diff) | |
download | Nim-4deda6b73253ee98bf112ad43d0c37562899db2c.tar.gz |
Update nre.nim (#8147)
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/nre.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/impure/nre.nim b/lib/impure/nre.nim index 6058128dd..889210f62 100644 --- a/lib/impure/nre.nim +++ b/lib/impure/nre.nim @@ -654,17 +654,17 @@ template replaceImpl(str: string, pattern: Regex, proc replace*(str: string, pattern: Regex, subproc: proc (match: RegexMatch): string): string = - ## Replaces each match of Regex in the string with ``sub``, which should + ## Replaces each match of Regex in the string with ``subproc``, which should ## never be or return ``nil``. ## - ## If ``sub`` is a ``proc (RegexMatch): string``, then it is executed with + ## If ``subproc`` is a ``proc (RegexMatch): string``, then it is executed with ## each match and the return value is the replacement value. ## - ## If ``sub`` is a ``proc (string): string``, then it is executed with the + ## If ``subproc`` is a ``proc (string): string``, then it is executed with the ## full text of the match and and the return value is the replacement ## value. ## - ## If ``sub`` is a string, the syntax is as follows: + ## If ``subproc`` is a string, the syntax is as follows: ## ## - ``$$`` - literal ``$`` ## - ``$123`` - capture number ``123`` |