Skip to content

Commit

Permalink
Update tcl.html.markdown (#2640)
Browse files Browse the repository at this point in the history
Fixed fold example to return actual result instead of the word "res"
  • Loading branch information
siva008 authored and vendethiel committed Jan 28, 2017
1 parent 05e4c41 commit c65e451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcl.html.markdown
Expand Up @@ -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
Expand Down

0 comments on commit c65e451

Please sign in to comment.