Skip to content

Commit c9cfa58

Browse files
committed
perlapi: Fix typo: 1 should have been -1
1 parent d5041a1 commit c9cfa58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ C<retlen> to C<-1> (cast to C<STRLEN>) and return zero.
10691069
Note that this API requires disambiguation between successful decoding a C<NUL>
10701070
character, and an error return (unless the C<UTF8_CHECK_ONLY> flag is set), as
10711071
in both cases, 0 is returned, and, depending on the malformation, C<retlen> may
1072-
be set to 1. To disambiguate, upon a zero return, see if the first byte of
1072+
be set to -1. To disambiguate, upon a zero return, see if the first byte of
10731073
C<s> is 0 as well. If so, the input was a C<NUL>; if not, the input had an
10741074
error. Or you can use C<L</utf8n_to_uvchr_error>>.
10751075

0 commit comments

Comments
 (0)