summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2021-08-05 07:30:15 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2021-08-05 07:30:15 (GMT)
commit1b1500534daaf0033c71d6c0e917298251e99a31 (patch)
treee47508c7c119d65575009a9daf86dee0b211f8cf
parent6118cd549e56a6e1fc195a72670fbc7562d86540 (diff)
downloadtcl-1b1500534daaf0033c71d6c0e917298251e99a31.zip
tcl-1b1500534daaf0033c71d6c0e917298251e99a31.tar.gz
tcl-1b1500534daaf0033c71d6c0e917298251e99a31.tar.bz2
Clarify description of corner case 'string replace "" 0 0 A' to return the empty string.
-rw-r--r--doc/string.n7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/string.n b/doc/string.n
index 8d8be3d..e6f68bd 100644
--- a/doc/string.n
+++ b/doc/string.n
@@ -290,9 +290,10 @@ specified as for the \fBindex\fR method. If \fInewstring\fR is
specified, then it is placed in the removed character range. If
\fIfirst\fR is less than zero then it is treated as if it were zero,
and if \fIlast\fR is greater than or equal to the length of the string
-then it is treated as if it were \fBend\fR. If \fIfirst\fR is greater
-than \fIlast\fR or the length of the initial string, or \fIlast\fR is
-less than 0, then the initial string is returned untouched.
+then it is treated as if it were \fBend\fR. The initial string is
+returned untouched, if \fIfirst\fR is greater than \fIlast\fR, or if
+\fIfirst\fR is equal or greater the length of the initial string, or
+\fIlast\fR is less than 0.
.TP
\fBstring reverse \fIstring\fR
.