Skip to content

Commit

Permalink
Merge pull request #32 from skx/29-repeat-issue
Browse files Browse the repository at this point in the history
Correctly quote the return value from our proc
  • Loading branch information
skx authored Jul 6, 2022
2 parents 05379c6 + f81a135 commit 7f589ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/stdlib.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ proc repeat {n body} {
decr n
set res [$body]
}
$res
"$res"
}


Expand Down Expand Up @@ -169,5 +169,5 @@ proc loop {var min max bdy} {
}

// return the last result
$res
"$res"
}

0 comments on commit 7f589ea

Please # to comment.