diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-04-03 02:30:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 02:30:27 -0700 |
commit | 6d87022050ffbd5d818781427329c5362e3df197 (patch) | |
tree | 3809b2b1a7790d8b30e6d694c575eb68f02f661c /zh-cn/lua-cn.html.markdown | |
parent | c76b8f690a577d9ff89947d79c36a96a7c3b4deb (diff) | |
parent | e8dabf3c1955e1a458e8bc936587ad59772a9c33 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'zh-cn/lua-cn.html.markdown')
-rw-r--r-- | zh-cn/lua-cn.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zh-cn/lua-cn.html.markdown b/zh-cn/lua-cn.html.markdown index 6736dc2a..6fd10a32 100644 --- a/zh-cn/lua-cn.html.markdown +++ b/zh-cn/lua-cn.html.markdown @@ -391,7 +391,8 @@ dofile('mod2') --> Hi! (再次运行,与require不同) f = loadfile('mod2') -- Calling f() runs mod2.lua. -- loadstring是loadfile的字符串版本。 -g = loadstring('print(343)') --返回一个函数。 +-- (loadstring已弃用, 使用load代替) +g = load('print(343)') --返回一个函数。 g() -- 打印343; 在此之前什么也不打印。 --]] |