Skip to content

Commit a714fd7

Browse files
CAD97BurntSushi
authored andcommitted
doc: clarify CRLF mode effect
PR #1165
1 parent d7f9347 commit a714fd7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

regex-lite/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ assert_eq!((m.start(), m.end()), (5, 5));
569569
```
570570
571571
When both CRLF mode and multi-line mode are enabled, then `^` and `$` will
572-
match either `\r` and `\n`, but never in the middle of a `\r\n`:
572+
match either `\r` or `\n`, but never in the middle of a `\r\n`:
573573
574574
```
575575
use regex_lite::Regex;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ assert_eq!((m.start(), m.end()), (5, 5));
833833
```
834834
835835
When both CRLF mode and multi-line mode are enabled, then `^` and `$` will
836-
match either `\r` and `\n`, but never in the middle of a `\r\n`:
836+
match either `\r` or `\n`, but never in the middle of a `\r\n`:
837837
838838
```
839839
use regex::Regex;

0 commit comments

Comments
 (0)