From c65e45121aaeca4406111d65d6030391b48f34c3 Mon Sep 17 00:00:00 2001 From: siva008 Date: Sun, 29 Jan 2017 00:15:03 +0530 Subject: Update tcl.html.markdown (#2640) Fixed fold example to return actual result instead of the word "res" --- tcl.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcl.html.markdown') 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 -- cgit v1.2.3