diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-11-15 06:16:42 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-11-18 14:26:19 -0800 |
commit | 3d2158f0cf7cd00e338cf32b32b56c9ae455f6cc (patch) | |
tree | aeda73253431ffed92991c7b80c45c90715c216c | |
parent | debcc99c3faa6bf8eb25fe079882867a8efeae45 (diff) | |
download | txr-3d2158f0cf7cd00e338cf32b32b56c9ae455f6cc.tar.gz txr-3d2158f0cf7cd00e338cf32b32b56c9ae455f6cc.tar.bz2 txr-3d2158f0cf7cd00e338cf32b32b56c9ae455f6cc.zip |
doc: wrong argument reference under regsub.
* txr.1: Fix wording that refers to first argument as the
second argument. It is the second form element, of course,
but the first argument. Reported by user vapnik spaknik.
-rw-r--r-- | txr.1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43477,10 +43477,10 @@ and The .code regsub function operates in two modes, depending on whether -the second argument is a regular expression, +the first argument is a regular expression, or function. -If the second argument is a regular expression it searches +If the first argument is a regular expression it searches .meta string for multiple occurrences of non-overlapping matches for that .metn regex . @@ -43505,7 +43505,7 @@ which case for every match which is found, this function is invoked, with the matching piece of text as an argument. The function's return value is then taken to be the replacement text. -If the second argument is a function, then it is called, with +If the first argument is a function, then it is called, with .meta string as its argument. The return value must be either a range object (see the |