diff --git a/README.md b/README.md index 3ca9eff..36e5639 100644 --- a/README.md +++ b/README.md @@ -207,7 +207,7 @@ typedef struct cJSON { int type; char *valuestring; - int valueint; /* DEPRECATED, please use valudouble instead */ + int valueint; /* writing to valueint is DEPRECATED, please use cJSON_SetNumberValue instead */ double valuedouble; char *string; diff --git a/cJSON.h b/cJSON.h index b649598..d3f492c 100644 --- a/cJSON.h +++ b/cJSON.h @@ -63,7 +63,7 @@ typedef struct cJSON /* The item's string, if type==cJSON_String and type == cJSON_Raw */ char *valuestring; - /* DEPRECATED, use valuedouble instead */ + /* writing to valueint is DEPRECATED, use cJSON_SetNumberValue instead */ int valueint; /* The item's number, if type==cJSON_Number */ double valuedouble;