From 19f8f20237db6a1d40a01edf2c97170356e87d93 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 30 Jul 2020 16:39:06 +0200 Subject: [PATCH 1/2] Fix confusing docs around interaction between u and s flags --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e0a0975f52..f4d875e750 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -731,8 +731,8 @@ Unicode codepoints. For example, in ASCII compatible mode, `\xFF` matches the literal byte `\xFF`, while in Unicode mode, `\xFF` is a Unicode codepoint that matches its UTF-8 encoding of `\xC3\xBF`. Similarly for octal notation when enabled. -6. `.` matches any *byte* except for `\n` instead of any Unicode scalar value. -When the `s` flag is enabled, `.` matches any byte. +6. in ASCII compatible mode, `.` matches any *byte* except for `\n`. When the +`s` flag is additionally enabled, `.` matches any byte. # Performance From 074617ce7e652a6074ba60445869b259598921b8 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 30 Jul 2020 17:19:01 +0200 Subject: [PATCH 2/2] fix capitalization --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f4d875e750..19642d6c76 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -731,7 +731,7 @@ Unicode codepoints. For example, in ASCII compatible mode, `\xFF` matches the literal byte `\xFF`, while in Unicode mode, `\xFF` is a Unicode codepoint that matches its UTF-8 encoding of `\xC3\xBF`. Similarly for octal notation when enabled. -6. in ASCII compatible mode, `.` matches any *byte* except for `\n`. When the +6. In ASCII compatible mode, `.` matches any *byte* except for `\n`. When the `s` flag is additionally enabled, `.` matches any byte. # Performance