mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Update tcl.html.markdown (#2640)
Fixed fold example to return actual result instead of the word "res"
This commit is contained in:
parent
05e4c41cb3
commit
c65e45121a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user