diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2006-08-09 10:06:28 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2006-08-09 10:06:28 (GMT) |
| commit | 77e28e9df94280dcd40d71625dfcc656e40d11b6 (patch) | |
| tree | e3746121f114a149427f88ebfe84850a5ae43702 /doc/subst.n | |
| parent | 0e1e65ad6dcf7154cb364f34193829eb705e60e0 (diff) | |
| download | tcl-77e28e9df94280dcd40d71625dfcc656e40d11b6.zip tcl-77e28e9df94280dcd40d71625dfcc656e40d11b6.tar.gz tcl-77e28e9df94280dcd40d71625dfcc656e40d11b6.tar.bz2 | |
Make [expr] use in examples more idiomatic [Bug 1526581]
Diffstat (limited to 'doc/subst.n')
| -rw-r--r-- | doc/subst.n | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/subst.n b/doc/subst.n index 46572a8..02f621c 100644 --- a/doc/subst.n +++ b/doc/subst.n @@ -6,7 +6,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: subst.n,v 1.8 2005/05/10 18:34:03 kennykb Exp $ +'\" RCS: @(#) $Id: subst.n,v 1.9 2006/08/09 10:06:28 dkf Exp $ '\" .so man.macros .TH subst n 7.4 Tcl "Tcl Built-In Commands" @@ -100,17 +100,17 @@ when processing text using \fIsubst\fR. For example, the script .CE returns ``\fBabc,\fR'', not ``\fBabc,,def\fR'' and the script .CS -\fBsubst\fR {abc,[continue;expr 1+2],def} +\fBsubst\fR {abc,[continue;expr {1+2}],def} .CE returns ``\fBabc,,def\fR'', not ``\fBabc,3,def\fR''. .PP Other exceptional return codes substitute the returned value .CS -\fBsubst\fR {abc,[return foo;expr 1+2],def} +\fBsubst\fR {abc,[return foo;expr {1+2}],def} .CE returns ``\fBabc,foo,def\fR'', not ``\fBabc,3,def\fR'' and .CS -\fBsubst\fR {abc,[return -code 10 foo;expr 1+2],def} +\fBsubst\fR {abc,[return -code 10 foo;expr {1+2}],def} .CE also returns ``\fBabc,foo,def\fR'', not ``\fBabc,3,def\fR''. |
