diff options
author | Maxim Zhukov <mzhukov@dlink.ru> | 2016-03-02 17:37:09 +0300 |
---|---|---|
committer | Maxim Zhukov <mzhukov@dlink.ru> | 2016-03-02 17:40:49 +0300 |
commit | 130c2fff31c24a502c3e1e1b4e1ee42883e34b72 (patch) | |
tree | 5e278ed01539e56b88af9a02448d07a8c1c50196 /doc | |
parent | b698ca13dec48769e8477027f321bfe64cb2a5e0 (diff) | |
download | jansson-130c2fff31c24a502c3e1e1b4e1ee42883e34b72.zip jansson-130c2fff31c24a502c3e1e1b4e1ee42883e34b72.tar.gz jansson-130c2fff31c24a502c3e1e1b4e1ee42883e34b72.tar.bz2 |
Fix proto in doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apiref.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/apiref.rst b/doc/apiref.rst index 39e28ca..8b0a339 100644 --- a/doc/apiref.rst +++ b/doc/apiref.rst @@ -346,7 +346,7 @@ length-aware functions if you wish to embed null bytes in strings. Returns the length of *string* in its UTF-8 presentation, or zero if *string* is not a JSON string. -.. function:: int json_string_set(const json_t *string, const char *value) +.. function:: int json_string_set(json_t *string, const char *value) Sets the associated value of *string* to *value*. *value* must be a valid UTF-8 encoded Unicode string. Returns 0 on success and -1 on @@ -357,7 +357,7 @@ length-aware functions if you wish to embed null bytes in strings. Like :func:`json_string_set`, but with explicit length, so *value* may contain null characters or not be null terminated. -.. function:: int json_string_set_nocheck(const json_t *string, const char *value) +.. function:: int json_string_set_nocheck(json_t *string, const char *value) Like :func:`json_string_set`, but doesn't check that *value* is valid UTF-8. Use this function only if you are certain that this |