Unverified Commit e123f650 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #1479 from MaxXSoft/patch-tutorial

doc/tutorial.zh-cn: fixed some typos
parents 55c3c241 d5c5b87f
......@@ -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"; // 上行的缩写
~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment