projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d04d6d0
)
coroutines tweak
author
Jim Pryor
<profjim@jimpryor.net>
Wed, 1 Dec 2010 04:56:35 +0000
(23:56 -0500)
committer
Jim Pryor
<profjim@jimpryor.net>
Wed, 1 Dec 2010 04:56:35 +0000
(23:56 -0500)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
coroutines_and_aborts.mdwn
patch
|
blob
|
history
diff --git
a/coroutines_and_aborts.mdwn
b/coroutines_and_aborts.mdwn
index
3283079
..
2ab7876
100644
(file)
--- a/
coroutines_and_aborts.mdwn
+++ b/
coroutines_and_aborts.mdwn
@@
-403,7
+403,7
@@
Many programming languages have this simplified exceution pattern, either instea
if (x == 1) then
value = 10
else
- return 20 --
return
early
+ return 20 --
abort
early
end
return value + 100 -- in Lua, a function's normal value
-- must always also be explicitly returned