doc: use the new jimtcl syntax for 'expr'
[fw/openocd] / doc / manual / primer / tcl.txt
index 868a75ba08a985ae6d0c3e64db76c7fd1783ec44..eba2f552d002e57a6f4a9133c6d1660a4913eedc 100644 (file)
@@ -174,7 +174,7 @@ them. It is similar to this bash statement.
        EXPORT vn=`date`
 
 LINE 2 & 3
-       set $vn [expr (1024 * $x)]
+       set $vn [expr {1024 * $x}]
        global $vn
 
 In line 1, we dynamically created a variable name.  Here, we are