aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxXSoft <x@MaxXSoft.net>2019-04-08 19:20:06 +0800
committerMaxXSoft <x@MaxXSoft.net>2019-04-08 19:20:06 +0800
commitd5c5b87f0d5f79d7258113ecb1e5bd4e614000e2 (patch)
tree964418644f753d08f23d67cd392b16df099b3649
parent55c3c241cf55801d8caf0f11af2e98595797801a (diff)
downloadplatform_external_rapidjson-d5c5b87f0d5f79d7258113ecb1e5bd4e614000e2.tar.gz
platform_external_rapidjson-d5c5b87f0d5f79d7258113ecb1e5bd4e614000e2.tar.bz2
platform_external_rapidjson-d5c5b87f0d5f79d7258113ecb1e5bd4e614000e2.zip
doc/tutorial.zh-cn: fixed some typos
-rw-r--r--doc/tutorial.zh-cn.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial.zh-cn.md b/doc/tutorial.zh-cn.md
index 77608bf..3bacfb0 100644
--- a/doc/tutorial.zh-cn.md
+++ b/doc/tutorial.zh-cn.md
@@ -250,7 +250,7 @@ string(const char* s, size_t count);
~~~~~~~~~~cpp
if (document["hello"] == document["n"]) /*...*/; // 比较两个值
-if (document["hello"] == "world") /*...*/; // 与字符串家面量作比较
+if (document["hello"] == "world") /*...*/; // 与字符串字面量作比较
if (document["i"] != 123) /*...*/; // 与整数作比较
if (document["pi"] != 3.14) /*...*/; // 与 double 作比较
~~~~~~~~~~
@@ -388,7 +388,7 @@ allocator 参数。对于字符串字面量(或字符数组常量),只需
~~~~~~~~~~cpp
Value s;
-s.SetString("rapidjson"); // 可包含空字符,长度在编译萁推导
+s.SetString("rapidjson"); // 可包含空字符,长度在编译期推导
s = "rapidjson"; // 上行的缩写
~~~~~~~~~~