Skip to content

Commit 2b96ab4

Browse files
committed
Modify parameter's name.
1 parent b85f9d4 commit 2b96ab4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $ time ./test_speed <repeat times> < xxx.json
2020
~~~c
2121
/* Parse JSON text and create a JSON value. Returns NULL on parsing
2222
failures (Invalid JSON, nesting too deep, memory allocation failure).
23-
@text: JSON text string */
24-
json_value_t *json_value_parse(const char *text);
23+
@json: JSON text string */
24+
json_value_t *json_value_parse(const char *json);
2525

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

README_cn.md

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

2424
/* 销毁JSON value
2525
@val:由parse, create或copy生成的JSON value对象。*/

json_parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C"
2020
{
2121
#endif
2222

23-
json_value_t *json_value_parse(const char *text);
23+
json_value_t *json_value_parse(const char *json);
2424
json_value_t *json_value_create(int type, ...);
2525
json_value_t *json_value_copy(const json_value_t *val);
2626
void json_value_destroy(json_value_t *val);

0 commit comments

Comments
 (0)