Skip to content

Commit 33ddb5e

Browse files
committed
doc: avoid nonexistent PCRE2_ERROR_MEMORY error
5438fc8 (Add serialization functions and tests with updated pcre2test. Fix PCRE2_INFO_SIZE issues., 2015-01-23) introduced the typo. Reported-by: @sjshuck Fixes: PCRE2Project#106
1 parent 3fec24a commit 33ddb5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/pcre2_serialize_decode.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ the following negative error codes:
3636
PCRE2_ERROR_BADDATA \fInumber_of_codes\fP is zero or less
3737
PCRE2_ERROR_BADMAGIC mismatch of id bytes in \fIbytes\fP
3838
PCRE2_ERROR_BADMODE mismatch of variable unit size or PCRE version
39-
PCRE2_ERROR_MEMORY memory allocation failed
39+
PCRE2_ERROR_NOMEMORY memory allocation failed
4040
PCRE2_ERROR_NULL \fIcodes\fP or \fIbytes\fP is NULL
4141
.sp
4242
PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled

doc/pcre2serialize.3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ of serialized patterns, or one of the following negative error codes:
8181
.sp
8282
PCRE2_ERROR_BADDATA the number of patterns is zero or less
8383
PCRE2_ERROR_BADMAGIC mismatch of id bytes in one of the patterns
84-
PCRE2_ERROR_MEMORY memory allocation failed
84+
PCRE2_ERROR_NOMEMORY memory allocation failed
8585
PCRE2_ERROR_MIXEDTABLES the patterns do not all use the same tables
8686
PCRE2_ERROR_NULL the 1st, 3rd, or 4th argument is NULL
8787
.sp

0 commit comments

Comments
 (0)