From: Jan-Philipp Litza Date: Fri, 6 May 2016 14:12:19 +0000 (+0200) Subject: Fix code in docs for json_object_new_double_s() X-Git-Tag: json-c-0.13-20171207~165^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2200ffa8b0a10cbd5d2349c80215c0516c145497;p=thirdparty%2Fjson-c.git Fix code in docs for json_object_new_double_s() --- diff --git a/json_object.h b/json_object.h index 2d1ba94b..2bce4547 100644 --- a/json_object.h +++ b/json_object.h @@ -633,8 +633,8 @@ extern struct json_object* json_object_new_double(double d); * An equivalent sequence of calls is: * @code * jso = json_object_new_double(d); - * json_object_set_serializer(d, json_object_userdata_to_json_string, - * strdup(ds), json_object_free_userdata) + * json_object_set_serializer(jso, json_object_userdata_to_json_string, + * strdup(ds), json_object_free_userdata); * @endcode * * @param d the numeric value of the double.