From 7a822d410076318ea12be4e3cdb57e1b91218f42 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Tue, 30 Nov 2010 23:56:35 -0500 Subject: [PATCH 1/1] coroutines tweak Signed-off-by: Jim Pryor --- coroutines_and_aborts.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0