diff --git a/lua.html.markdown b/lua.html.markdown index 4a470623..e32a275d 100644 --- a/lua.html.markdown +++ b/lua.html.markdown @@ -383,8 +383,9 @@ dofile('mod2.lua') --> Hi! (runs it again) -- loadfile loads a lua file but doesn't run it yet. f = loadfile('mod2.lua') -- Call f() to run it. --- loadstring is loadfile for strings. -g = loadstring('print(343)') -- Returns a function. +-- load is loadfile for strings. +-- (loadstring is deprecated, use load instead) +g = load('print(343)') -- Returns a function. g() -- Prints out 343; nothing printed before now. --]]