diff options
-rw-r--r-- | lua.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua.html.markdown b/lua.html.markdown index 7325a1cf..35d68e9b 100644 --- a/lua.html.markdown +++ b/lua.html.markdown @@ -125,6 +125,9 @@ f = function (x) return x * x end -- And so are these: local function g(x) return math.sin(x) end +local g = function(x) return math.xin(x) end +-- Equivalent to local function g(x)..., except referring +-- to g in the function body won't work as expected. local g; g = function (x) return math.sin(x) end -- the 'local g' decl makes g-self-references ok. |