From a4ac97fea8a2d802985d1f5b298ede2cb07cc8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Fri, 22 Apr 2022 09:59:44 -0700 Subject: [PATCH] doc: avoid nonexistent PCRE2_ERROR_MEMORY error (#107) 5438fc8a (Add serialization functions and tests with updated pcre2test. Fix PCRE2_INFO_SIZE issues., 2015-01-23) introduced the typo. Reported-by: @sjshuck Fixes: #106 --- doc/pcre2_serialize_decode.3 | 2 +- doc/pcre2serialize.3 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/pcre2_serialize_decode.3 b/doc/pcre2_serialize_decode.3 index b67a112..611113f 100644 --- a/doc/pcre2_serialize_decode.3 +++ b/doc/pcre2_serialize_decode.3 @@ -36,7 +36,7 @@ the following negative error codes: PCRE2_ERROR_BADDATA \fInumber_of_codes\fP is zero or less PCRE2_ERROR_BADMAGIC mismatch of id bytes in \fIbytes\fP PCRE2_ERROR_BADMODE mismatch of variable unit size or PCRE version - PCRE2_ERROR_MEMORY memory allocation failed + PCRE2_ERROR_NOMEMORY memory allocation failed PCRE2_ERROR_NULL \fIcodes\fP or \fIbytes\fP is NULL .sp PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled diff --git a/doc/pcre2serialize.3 b/doc/pcre2serialize.3 index 987bc3a..a94f13b 100644 --- a/doc/pcre2serialize.3 +++ b/doc/pcre2serialize.3 @@ -81,7 +81,7 @@ of serialized patterns, or one of the following negative error codes: .sp PCRE2_ERROR_BADDATA the number of patterns is zero or less PCRE2_ERROR_BADMAGIC mismatch of id bytes in one of the patterns - PCRE2_ERROR_MEMORY memory allocation failed + PCRE2_ERROR_NOMEMORY memory allocation failed PCRE2_ERROR_MIXEDTABLES the patterns do not all use the same tables PCRE2_ERROR_NULL the 1st, 3rd, or 4th argument is NULL .sp