projects
/
lambda.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
coroutines tweak
[lambda.git]
/
coroutines_and_aborts.mdwn
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