Skip to content

Commit

Permalink
doc: tweak presentation of \pN syntax
Browse files Browse the repository at this point in the history
The wording appears to be a little unclear, so we switch it around a
bit.

Fixes #975
  • Loading branch information
BurntSushi committed Apr 17, 2023
1 parent 3c579d0 commit 88316d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -287,9 +287,9 @@ a separate crate, [`regex-syntax`](https://docs.rs/regex-syntax).
. any character except new line (includes new line with s flag)
\d digit (\p{Nd})
\D not digit
\pN One-letter name Unicode character class
\pX Unicode character class identified by a one-letter name
\p{Greek} Unicode character class (general category or script)
\PN Negated one-letter name Unicode character class
\PX Negated Unicode character class identified by a one-letter name
\P{Greek} negated Unicode character class (general category or script)
</pre>
Expand Down

0 comments on commit 88316d5

Please sign in to comment.