diff options
Diffstat (limited to 'zh-cn/lua-cn.html.markdown')
| -rw-r--r-- | zh-cn/lua-cn.html.markdown | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/zh-cn/lua-cn.html.markdown b/zh-cn/lua-cn.html.markdown index 95a94c76..098d0ab5 100644 --- a/zh-cn/lua-cn.html.markdown +++ b/zh-cn/lua-cn.html.markdown @@ -1,5 +1,5 @@  --- -language: lua +language: Lua  lang: zh-cn  contributors:       - ["Tyler Neylon", "http://tylerneylon.com/"] @@ -9,6 +9,7 @@ contributors:      - ["Amr Tamimi", "https://amrtamimi.com"]  translators:      - ["Jakukyo Friel", "http://weakish.github.io"] +filename: lua-cn.lua  ---  ```lua @@ -62,8 +63,8 @@ foo = anUnknownVariable  -- 现在 foo = nil.  aBoolValue = false  ---只有nil和false为假; 0和 ''都均为真!  -if not aBoolValue then print('twas false') end  +--只有nil和false为假; 0和 ''均为真!  +if not aBoolValue then print('false') end   -- 'or'和 'and'短路   -- 类似于C/js里的 a?b:c 操作符:  @@ -148,7 +149,7 @@ print {} -- 一样可以工作。  -- Table = Lua唯一的组合数据结构;   --         它们是关联数组。   -- 类似于PHP的数组或者js的对象,  --- 它们是哈希表或者字典,也可以当初列表使用。  +-- 它们是哈希表或者字典,也可以当列表使用。   -- 按字典/map的方式使用Table:  | 
