Skip to content

Commit

Permalink
Update API description a bit in header file
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitianux committed Nov 13, 2022
1 parent b9dd2c6 commit d409766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xtf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ enum {
* The required output buffer size can be obtained by calling with
* $dst = NULL.
*
* If error occurred, then return a value of (uintptr_t)-1.
* If error occurred, then return XTF8_ABORTED.
*
* The $error parameter specifies the error handling method:
* - XTF8_ERR_REPLACE: replace conflicting PUA characters with U+FFFD
Expand All @@ -63,7 +63,7 @@ uintptr_t xtf8_encode(void *dst, const void *src, size_t len, int error);
* $dst = NULL, but it's easier to just allocate a buffer of the same
* size as the input.
*
* If error occurred, then return a value of (uintptr_t)-1.
* If error occurred, then return XTF8_ABORTED.
*
* The $error parameter specifies the error handling method:
* - XTF8_ERR_REPLACE: replace invalid characters with U+FFFD
Expand Down

0 comments on commit d409766

Please sign in to comment.