Skip to content

Commit e123f65

Browse files
authored
Merge pull request Tencent#1479 from MaxXSoft/patch-tutorial
doc/tutorial.zh-cn: fixed some typos
2 parents 55c3c24 + d5c5b87 commit e123f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ string(const char* s, size_t count);
250250
251251
~~~~~~~~~~cpp
252252
if (document["hello"] == document["n"]) /*...*/; // 比较两个值
253-
if (document["hello"] == "world") /*...*/; // 与字符串家面量作比较
253+
if (document["hello"] == "world") /*...*/; // 与字符串字面量作比较
254254
if (document["i"] != 123) /*...*/; // 与整数作比较
255255
if (document["pi"] != 3.14) /*...*/; // 与 double 作比较
256256
~~~~~~~~~~
@@ -388,7 +388,7 @@ allocator 参数。对于字符串字面量(或字符数组常量),只需
388388
389389
~~~~~~~~~~cpp
390390
Value s;
391-
s.SetString("rapidjson"); // 可包含空字符,长度在编译萁推导
391+
s.SetString("rapidjson"); // 可包含空字符,长度在编译期推导
392392
s = "rapidjson"; // 上行的缩写
393393
~~~~~~~~~~
394394

0 commit comments

Comments
 (0)