From: Jim Pryor Date: Wed, 1 Dec 2010 04:56:35 +0000 (-0500) Subject: coroutines tweak X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=commitdiff_plain;h=7a822d410076318ea12be4e3cdb57e1b91218f42 coroutines tweak Signed-off-by: Jim Pryor --- diff --git a/coroutines_and_aborts.mdwn b/coroutines_and_aborts.mdwn index 32830795..2ab78763 100644 --- 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