diff options
author | siva008 <siva008@gmail.com> | 2017-01-29 00:15:03 +0530 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2017-01-28 19:45:03 +0100 |
commit | c65e45121aaeca4406111d65d6030391b48f34c3 (patch) | |
tree | 642c6c9cf388685005ecb9aeafab28146615179d | |
parent | 05e4c41cb3e912e19867f9c5adcdaa1b087722f3 (diff) |
Update tcl.html.markdown (#2640)
Fixed fold example to return actual result instead of the word "res"
-rw-r--r-- | tcl.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcl.html.markdown b/tcl.html.markdown index d3e80f87..e3e84268 100644 --- a/tcl.html.markdown +++ b/tcl.html.markdown @@ -268,7 +268,7 @@ proc fold {cmd args} { foreach arg $args { set res [$cmd $res $arg] } - return res + return $res } fold ::tcl::mathop::* 5 3 3 ;# -> 45 |