summaryrefslogtreecommitdiffstats
path: root/doc/expr.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:37:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:37:42 (GMT)
commit8f3e8012b1ad2c0f87eeba801b88e438b85143af (patch)
tree129f62422f2c348f41663d1c15a1deb2a47f4610 /doc/expr.n
parentcfe53b8870af9dc22186aadfaec26380ae433716 (diff)
parent076a7e2839881c03d0a98a8fc50823aef42ad79a (diff)
downloadtcl-8f3e8012b1ad2c0f87eeba801b88e438b85143af.zip
tcl-8f3e8012b1ad2c0f87eeba801b88e438b85143af.tar.gz
tcl-8f3e8012b1ad2c0f87eeba801b88e438b85143af.tar.bz2
Merge 8.6
Diffstat (limited to 'doc/expr.n')
-rw-r--r--doc/expr.n9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/expr.n b/doc/expr.n
index 1498ba1..69f6399 100644
--- a/doc/expr.n
+++ b/doc/expr.n
@@ -82,9 +82,9 @@ produces the value on the right side.
.PP
.CS
.ta 9c
-\fBexpr\fR 3.1 + $a \fI6.1\fR
-\fBexpr\fR 2 + "$a.$b" \fI5.6\fR
-\fBexpr\fR 4*[llength "6 2"] \fI8\fR
+\fBexpr\fR {3.1 + $a} \fI6.1\fR
+\fBexpr\fR {2 + "$a.$b"} \fI5.6\fR
+\fBexpr\fR {4*[llength "6 2"]} \fI8\fR
\fBexpr\fR {{word one} < "word $a"} \fI0\fR
.CE
.PP
@@ -270,7 +270,7 @@ which means that operands are not evaluated if they are
not needed to determine the outcome. For example, in
.PP
.CS
-\fBexpr\fR {$v ? [a] : [b]}
+\fBexpr\fR {$v?[a]:[b]}
.CE
.PP
only one of \fB[a]\fR or \fB[b]\fR is evaluated,
@@ -510,4 +510,5 @@ Copyright \(co 2005 by Kevin B. Kenny <kennykb@acm.org>. All rights reserved.
.fi
'\" Local Variables:
'\" mode: nroff
+'\" fill-column: 78
'\" End: