Skip to content

Commit 6d09d17

Browse files
committed
Update README.
1 parent 51d2ada commit 6d09d17

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ $ time ./test_speed <repeat times> < xxx.json
1818

1919
### JSON value related
2020
~~~c
21-
/* Parse JSON document and create a JSON value. Returns NULL on parsing
21+
/* Parse JSON text and create a JSON value. Returns NULL on parsing
2222
failures (Invalid JSON, nesting too deep, memory allocation failure).
23-
@doc: JSON document */
24-
json_value_t *json_value_parse(const char *doc);
23+
@text: JSON text string */
24+
json_value_t *json_value_parse(const char *text);
2525

2626
/* Destroy the JSON value
2727
@val: JSON value. Typically created by the parsing function. */

README_cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ $ time ./test_speed <重复次数> < xxx.json
1717
# 主要接口
1818
### JSON value相关接口
1919
~~~c
20-
/* 解析JSON文档产生JSON value。返回JSON value对象。返回NULL代表解析失败(格式不标准,嵌套过深,分配内存失败)
21-
@doc:文档字符串 */
22-
json_value_t *json_value_parse(const char *doc);
20+
/* 解析JSON文本产生JSON value。返回JSON value对象。返回NULL代表解析失败(格式不标准,嵌套过深,分配内存失败)
21+
@text:文本字符串 */
22+
json_value_t *json_value_parse(const char *text);
2323

2424
/* 销毁JSON value
2525
@val:JSON value对象。一般由parse函数产生。*/

0 commit comments

Comments
 (0)