From: dota17 Date: Wed, 22 Jan 2020 01:56:52 +0000 (+0800) Subject: update comment X-Git-Tag: json-c-0.14-20200419~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F536%2Fhead;p=thirdparty%2Fjson-c.git update comment --- diff --git a/json_object.h b/json_object.h index 41d6d7e8..afd6e4f4 100644 --- a/json_object.h +++ b/json_object.h @@ -965,8 +965,9 @@ JSON_EXPORT int json_object_set_string(json_object* obj, const char* new_value); */ JSON_EXPORT int json_object_set_string_len(json_object* obj, const char* new_value, int len); -/** Create a new empty json_object of type null and return NULL. - * +/** This method exists only to provide a complementary function + * along the lines of the other json_object_new_* functions. + * It always returns NULL, and it is entirely acceptable to simply use NULL directly. */ JSON_EXPORT struct json_object* json_object_new_null();