Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Aug 7, 2023
1 parent bc16133 commit f3946ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yyjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ yyjson_api bool yyjson_alc_pool_init(yyjson_alc *alc, void *buf, size_t size);
yyjson_alc_pool_init(alc, buf, size);
@endcode
@param size The size of buffer, in bytes.
@return A new pool allocator, or NULL if an error occurs.
@return A new pool allocator, or NULL if memory allocation failed.
@note The returned value should be freed with `yyjson_alc_pool_free()`.
*/
yyjson_api yyjson_alc *yyjson_alc_pool_new(size_t size);
Expand Down Expand Up @@ -1537,7 +1537,7 @@ yyjson_api bool yyjson_mut_val_write_fp(FILE *fp,
Multiple options can be combined with `|` operator. 0 means no options.
@param len A pointer to receive output length in bytes (not including the
null-terminator). Pass NULL if you don't need length information.
@return A new JSON string, or
@return A new JSON string, or NULL if an error occurs.
This string is encoded as UTF-8 with a null-terminator.
When it's no longer needed, it should be freed with free().
*/
Expand Down

0 comments on commit f3946ec

Please sign in to comment.