summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2005-01-13 11:13:15 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2005-01-13 11:13:15 (GMT)
commitc58032ce3cf02e57b6a1d112dee3cf9d14fa4c80 (patch)
tree53d6bcaa5bda61c3086640ffd1a5e1d55bead33b
parent9d39b468fbc1b4c284a287eecaf88c7a10021f05 (diff)
downloadtcl-c58032ce3cf02e57b6a1d112dee3cf9d14fa4c80.zip
tcl-c58032ce3cf02e57b6a1d112dee3cf9d14fa4c80.tar.gz
tcl-c58032ce3cf02e57b6a1d112dee3cf9d14fa4c80.tar.bz2
Reduce confusion (reported in c.l.t) over [string trim]'s chars argument
-rw-r--r--ChangeLog5
-rw-r--r--doc/string.n12
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 55287d6..0b36609 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
+
+ * doc/string.n: Removed the term 'set' from the documentation of
+ the [string trim] commands, as it caused confusion.
+
2005-01-12 Donal K. Fellows <donal.k.fellows@man.ac.uk>
* unix/tcl.m4 (SC_PATH_{TCL,TK}CONFIG): Added code to detect the
diff --git a/doc/string.n b/doc/string.n
index f0f21ad..74fae5a 100644
--- a/doc/string.n
+++ b/doc/string.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: string.n,v 1.24 2004/10/27 14:24:37 dkf Exp $
+'\" RCS: @(#) $Id: string.n,v 1.25 2005/01/13 11:13:17 dkf Exp $
'\"
.so man.macros
.TH string n 8.1 Tcl "Tcl Built-In Commands"
@@ -286,19 +286,19 @@ specified as for the \fBindex\fR method.
.TP
\fBstring trim \fIstring\fR ?\fIchars\fR?
Returns a value equal to \fIstring\fR except that any leading or
-trailing characters from the set given by \fIchars\fR are removed. If
+trailing characters present in the string given by \fIchars\fR are removed. If
\fIchars\fR is not specified then white space is removed (spaces,
tabs, newlines, and carriage returns).
.TP
\fBstring trimleft \fIstring\fR ?\fIchars\fR?
Returns a value equal to \fIstring\fR except that any leading
-characters from the set given by \fIchars\fR are removed. If
+characters present in the string given by \fIchars\fR are removed. If
\fIchars\fR is not specified then white space is removed (spaces,
tabs, newlines, and carriage returns).
.TP
\fBstring trimright \fIstring\fR ?\fIchars\fR?
Returns a value equal to \fIstring\fR except that any trailing
-characters from the set given by \fIchars\fR are removed. If
+characters present in the string given by \fIchars\fR are removed. If
\fIchars\fR is not specified then white space is removed (spaces,
tabs, newlines, and carriage returns).
.TP
@@ -334,3 +334,7 @@ expr(n), list(n)
.SH KEYWORDS
case conversion, compare, index, match, pattern, string, word, equal, ctype
+
+'\" Local Variables:
+'\" mode: nroff
+'\" End: