From dabfeb0b24906cbc12f7a089c83666c63be43b2d Mon Sep 17 00:00:00 2001 From: Rafael Bachmann Date: Sat, 8 Jul 2023 14:21:12 +0200 Subject: [PATCH] Fix minor typos in docs --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 191aa2e1a..e9c9c570f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ as follows: * [`Regex::new`] compiles a regex using the default configuration. A [`RegexBuilder`] permits setting a non-default configuration. (For example, -case insensitive matching, verbose mode and others.) +case-insensitive matching, verbose mode and others.) * [`Regex::is_match`] reports whether a match exists in a particular haystack. * [`Regex::find`] reports the byte offsets of a match in a haystack, if one exists. [`Regex::find_iter`] returns an iterator over all such matches. @@ -109,7 +109,7 @@ fn main() { } ``` -Foruth, run it with `cargo run`: +Fourth, run it with `cargo run`: ```text $ cargo run @@ -548,7 +548,7 @@ get ASCII-only word boundaries, use `(?-u:\b)` and `(?-u:\B)`. * `^` and `$` are **not** Unicode-aware in multi-line mode. Namely, they only recognize `\n` (assuming CRLF mode is not enabled) and not any of the other forms of line terminators defined by Unicode. -* Case insensitive searching is Unicode-aware and uses simple case folding. +* case-insensitive searching is Unicode-aware and uses simple case folding. * Unicode general categories, scripts and many boolean properties are available by default via the `\p{property name}` syntax. * In all cases, matches are reported using byte offsets. Or more precisely, @@ -1230,7 +1230,7 @@ default are noted. is not included here, but contains properties like `Alphabetic`, `Emoji`, `Lowercase`, `Math`, `Uppercase` and `White_Space`. * **unicode-case** - - Provide the data for case insensitive matching using + Provide the data for case-insensitive matching using [Unicode's "simple loose matches" specification](https://www.unicode.org/reports/tr18/#Simple_Loose_Matches). * **unicode-gencat** - Provide the data for