Skip to content

Commit f0aa553

Browse files
authored
Update tutorial04.md
1 parent 4f113f3 commit f0aa553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial04/tutorial04.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)