Update CrashCourseInLua.rst

gccjit-ravi534
Dibyendu Majumdar 7 years ago committed by GitHub
parent f595398107
commit 2c7134bdcf

@ -159,7 +159,7 @@ The ``GETTABUP`` instruction looks up the name 'print' in the captured variable
Functions in Lua are closures
=============================
Lua functions can reference variables in out scopes - and such references can be captured by the function so that even if the outer scope does not exist anymore the variable still lives on::
Lua functions can reference variables in outer scopes - and such references can be captured by the function so that even if the outer scope does not exist anymore the variable still lives on::
-- x() returns two anonymous functions
x = function()

Loading…
Cancel
Save