summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-11-15 06:16:42 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-11-18 14:26:19 -0800
commit3d2158f0cf7cd00e338cf32b32b56c9ae455f6cc (patch)
treeaeda73253431ffed92991c7b80c45c90715c216c
parentdebcc99c3faa6bf8eb25fe079882867a8efeae45 (diff)
downloadtxr-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.16
1 files changed, 3 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 56b35544..563f24e0 100644
--- a/txr.1
+++ b/txr.1
@@ -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