Mention success first in json_load_callback_t docs
This commit is contained in:
parent
db8ca3645f
commit
bf2584703a
@ -993,10 +993,10 @@ The following functions perform the actual JSON decoding.
|
|||||||
*buffer* points to a buffer of *buflen* bytes, and *data* is the
|
*buffer* points to a buffer of *buflen* bytes, and *data* is the
|
||||||
corresponding :func:`json_load_callback()` argument passed through.
|
corresponding :func:`json_load_callback()` argument passed through.
|
||||||
|
|
||||||
On error, the function should return ``(size_t)-1`` to abort the
|
On success, the function should return the number of bytes read; a
|
||||||
decoding process. On success, it should return the number of bytes read;
|
returned value of 0 indicates that no data was read and that the
|
||||||
a returned value of 0 indicates that no data was read and that the end of
|
end of file has been reached. On error, the function should return
|
||||||
file has been reached.
|
``(size_t)-1`` to abort the decoding process.
|
||||||
|
|
||||||
.. versionadded:: 2.4
|
.. versionadded:: 2.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user