cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 1571a3ebe4378621bbba93e4d5424e187bf00130
parent 529ec06abbc0aebac4ef719257d7b03efa643d64
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue,  8 May 2018 21:31:00 +0200

Merge pull request #266 from zhaozhixu/master

fix a typo in cJSON.h
Diffstat:
McJSON.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cJSON.h b/cJSON.h @@ -156,7 +156,7 @@ CJSON_PUBLIC(void) cJSON_Delete(cJSON *c); /* Returns the number of items in an array (or object). */ CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array); -/* Retrieve item number "item" from array "array". Returns NULL if unsuccessful. */ +/* Retrieve item number "index" from array "array". Returns NULL if unsuccessful. */ CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int index); /* Get item "string" from object. Case insensitive. */ CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string);