Skip to content

Commit

Permalink
doc/pcre2api.3: 'constant' applies to the pointee; not pointer (#377)
Browse files Browse the repository at this point in the history
That is, these are 'const PCRE2_UCHARn *', not 'PCRE2_UCHARn *const'.

Also, use semantic newlines.  See man-pages(7).
  • Loading branch information
alejandro-colomar authored Jan 31, 2024
1 parent 7d59dde commit 061de31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/pcre2api.3
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ There are also three different sets of data types:
\fBPCRE2_UCHAR8, PCRE2_UCHAR16, PCRE2_UCHAR32\fP
\fBPCRE2_SPTR8, PCRE2_SPTR16, PCRE2_SPTR32\fP
.sp
The UCHAR types define unsigned code units of the appropriate widths. For
example, PCRE2_UCHAR16 is usually defined as `uint16_t'. The SPTR types are
constant pointers to the equivalent UCHAR types, that is, they are pointers to
vectors of unsigned code units.
The UCHAR types define unsigned code units of the appropriate widths.
For example, PCRE2_UCHAR16 is usually defined as `uint16_t'.
The SPTR types are pointers to constants of the equivalent UCHAR types,
that is, they are pointers to vectors of unsigned code units.
.P
Character strings are passed to a PCRE2 library as sequences of unsigned
integers in code units of the appropriate width. The length of a string may
Expand Down

0 comments on commit 061de31

Please sign in to comment.