Skip to content

Commit 33b3a96

Browse files
committed
Merge branch 'master' into draft
2 parents 3b12a5a + 71385aa commit 33b3a96

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tutorial03_answer/tutorial03_answer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static int lept_parse_string(lept_context* c, lept_value* v) {
202202
unescaped = %x20-21 / %x23-5B / %x5D-10FFFF
203203
~~~
204204
205-
当中空缺的 %x22 是双括号,%x5C 是反斜线,都已经处理。所以不合法的字符是 %x00 至 %x1F。我们简单地在 default 里处理:
205+
当中空缺的 %x22 是双引号,%x5C 是反斜线,都已经处理。所以不合法的字符是 %x00 至 %x1F。我们简单地在 default 里处理:
206206
207207
~~~c
208208
/* ... */

tutorial04/tutorial04.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Milo Yip
44
* 2016/10/2
55

6-
本文是[《从零开始的 JSON 库教程》](https://zhuanlan.zhihu.com/json-tutorial)的第四个单元。代码位于 [json-tutorial/tutorial04](https://github.com/miloyip/json-tutorial/blob/master/tutorial04_answer)
6+
本文是[《从零开始的 JSON 库教程》](https://zhuanlan.zhihu.com/json-tutorial)的第四个单元。代码位于 [json-tutorial/tutorial04](https://github.com/miloyip/json-tutorial/tree/master/tutorial04)
77

88
本单元内容:
99

@@ -101,7 +101,7 @@ UTF-8 的编码单元是 8 位字节,每个码点编码成 1 至 4 个字节
101101

102102
~~~c
103103
if (u >= 0x0800 && u <= 0xFFFF) {
104-
OutputByte(0xE0 | ((u >> 12) & 0xFF)); /* 0xE0 = 11000000 */
104+
OutputByte(0xE0 | ((u >> 12) & 0xFF)); /* 0xE0 = 11100000 */
105105
OutputByte(0x80 | ((u >> 6) & 0x3F)); /* 0x80 = 10000000 */
106106
OutputByte(0x80 | ( u & 0x3F)); /* 0x3F = 00111111 */
107107
}

0 commit comments

Comments
 (0)