Skip to content

Commit 841f459

Browse files
committed
typo
1 parent 4b2744d commit 841f459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorial01/tutorial01.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int main() {
279279
280280
~~~
281281
/Users/miloyip/github/json-tutorial/tutorial01/test.c:27: expect: 0 actual: 1
282-
0/2 (0.00%)
282+
1/2 (50.00%)
283283
~~~
284284
285285
第一个返回 LEPT_PARSE_OK,所以是通过的。第二个测试因为 lept_parse() 没有把 v.type 改成 LEPT_NULL,造成失败。我们再实现 lept_parse() 令到它能通过测试。
@@ -335,7 +335,7 @@ else
335335

336336
有了 API 的设计、单元测试,终于要实现解析器了。
337337

338-
首先为了减少解析函数之间传递多个多数,我们把这些数据都放进一个 lept_context 结构体:
338+
首先为了减少解析函数之间传递多个参数,我们把这些数据都放进一个 lept_context 结构体:
339339

340340
~~~c
341341
typedef struct {

0 commit comments

Comments
 (0)