summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-08-25 16:50:38 +0200
committerven <vendethiel@hotmail.fr>2015-08-25 16:50:38 +0200
commitf8144d5749144c667988cada11a1e8ba13abf49d (patch)
tree11af2c13a15435b1b5959ee116ae0039979fe680
parentb7f18b1cc223f9c0dbe2a36d6cf0955c4c14ff90 (diff)
parent9650cdc12468e91cb7a64aad6017671b7a40c1ef (diff)
Merge pull request #1209 from qzerolee/master
[Tcl]Added a missing dollar
-rw-r--r--tcl.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl.html.markdown b/tcl.html.markdown
index 79b5e87d..c1cd42ca 100644
--- a/tcl.html.markdown
+++ b/tcl.html.markdown
@@ -257,7 +257,7 @@ proc greet greeting\ name return\ \"Hello,\ \$name!
proc fold {cmd args} {
set res 0
foreach arg $args {
- set res [cmd $res $arg]
+ set res [$cmd $res $arg]
}
}
fold ::tcl::mathop::* 5 3 3 ;# -> 45