summaryrefslogtreecommitdiffstats
path: root/doc/set.n
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2006-08-09 10:06:28 (GMT)
committerdkf <dkf@noemail.net>2006-08-09 10:06:28 (GMT)
commit0f871806bd9881fcfce3483f96be392cfcc294c7 (patch)
treee3746121f114a149427f88ebfe84850a5ae43702 /doc/set.n
parentff5d4a3d4eef6213ef90138b2251d1a76041316d (diff)
downloadtcl-0f871806bd9881fcfce3483f96be392cfcc294c7.zip
tcl-0f871806bd9881fcfce3483f96be392cfcc294c7.tar.gz
tcl-0f871806bd9881fcfce3483f96be392cfcc294c7.tar.bz2
Make [expr] use in examples more idiomatic [Bug 1526581]
FossilOrigin-Name: 04c72ee62f23b707ec0d7e71316af0daebfbeac8
Diffstat (limited to 'doc/set.n')
-rw-r--r--doc/set.n4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/set.n b/doc/set.n
index 0c947ad..91e9c71 100644
--- a/doc/set.n
+++ b/doc/set.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: set.n,v 1.6 2004/10/27 14:24:37 dkf Exp $
+'\" RCS: @(#) $Id: set.n,v 1.7 2006/08/09 10:06:28 dkf Exp $
'\"
.so man.macros
.TH set n "" Tcl "Tcl Built-In Commands"
@@ -44,7 +44,7 @@ unless \fIvarName\fR was declared to resolve differently through one of the
.SH EXAMPLES
Store a random number in the variable \fIr\fR:
.CS
-\fBset\fR r [expr rand()]
+\fBset\fR r [expr {rand()}]
.CE
.PP
Store a short message in an array element: