summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJakukyo Friel <weakish@gmail.com>2014-12-10 22:57:59 +0800
committerJakukyo Friel <weakish@gmail.com>2014-12-10 22:57:59 +0800
commit4f2f0116edb8b4a83dba19e9fe61229e8d88d29e (patch)
treeeceb69bcf559a3f10846e1499b9ba3793c016008
parent7a3290e825d1f1c16c792c17482bc47e3db3ce25 (diff)
lua-cn: typos and refinements.
-rw-r--r--zh-cn/lua-cn.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/lua-cn.html.markdown b/zh-cn/lua-cn.html.markdown
index 53a603a2..098d0ab5 100644
--- a/zh-cn/lua-cn.html.markdown
+++ b/zh-cn/lua-cn.html.markdown
@@ -63,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 操作符:
@@ -149,7 +149,7 @@ print {} -- 一样可以工作。
-- Table = Lua唯一的组合数据结构;
-- 它们是关联数组。
-- 类似于PHP的数组或者js的对象,
--- 它们是哈希表或者字典,也可以当初列表使用。
+-- 它们是哈希表或者字典,也可以当列表使用。
-- 按字典/map的方式使用Table: