From 0d5ecc11b6af3fc8869b80520804e83ec44d8487 Mon Sep 17 00:00:00 2001 From: Zhao Zhixu Date: Tue, 8 May 2018 22:45:14 +0800 Subject: [PATCH] fix typo --- cJSON.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.h b/cJSON.h index 15eda75..b374fe4 100644 --- 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);