From bfbc0b48e9256473491755766c079f73bee80724 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 1 Sep 2015 10:05:23 +0100 Subject: lib: Trivial documentation clarifications Clarify the documentation for json_node_set_object() and json_object_get_array_member(). https://bugzilla.gnome.org/show_bug.cgi?id=754384 --- json-glib/json-node.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'json-glib/json-node.c') diff --git a/json-glib/json-node.c b/json-glib/json-node.c index 13968bc..fb95f42 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -410,9 +410,11 @@ json_node_copy (JsonNode *node) /** * json_node_set_object: * @node: a #JsonNode initialized to %JSON_NODE_OBJECT - * @object: a #JsonObject + * @object: (nullable): a #JsonObject * * Sets @objects inside @node. The reference count of @object is increased. + * + * If @object is %NULL, the node’s existing object is cleared. */ void json_node_set_object (JsonNode *node, -- cgit v1.2.1