From 1b1500534daaf0033c71d6c0e917298251e99a31 Mon Sep 17 00:00:00 2001 From: oehhar Date: Thu, 5 Aug 2021 07:30:15 +0000 Subject: Clarify description of corner case 'string replace "" 0 0 A' to return the empty string. --- doc/string.n | 7 ++++--- 1 file 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 . -- cgit v0.12