Merge pull request #1479 from MaxXSoft/patch-tutorial

doc/tutorial.zh-cn: fixed some typos
This commit is contained in:
Milo Yip 2019-04-09 09:42:14 +08:00 committed by GitHub
commit e123f650a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"; // 上行的缩写
~~~~~~~~~~