Răsfoiți Sursa

doc/tutorial.zh-cn: fixed some typos

MaxXSoft 6 ani în urmă
părinte
comite
d5c5b87f0d
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      doc/tutorial.zh-cn.md

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