summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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