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-15 06:16:42 -0800
commit7a8aaee46a252c9d74c03052f45256bccff13218 (patch)
treeaeda73253431ffed92991c7b80c45c90715c216c
parent5df91cebdc62b32f155ebb57e8ddb6e166055a92 (diff)
downloadtxr-7a8aaee46a252c9d74c03052f45256bccff13218.tar.gz
txr-7a8aaee46a252c9d74c03052f45256bccff13218.tar.bz2
txr-7a8aaee46a252c9d74c03052f45256bccff13218.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