Skip to content

Commit 87f7f3f

Browse files
authored
automata/doc: fix typo when describing implicit unanchored prefix
PR #1052
1 parent 7bc8f88 commit 87f7f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex-automata/src/util/search.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl<'h> Input<'h> {
246246
/// When a search is anchored (so that's [`Anchored::Yes`] or
247247
/// [`Anchored::Pattern`]), a match must begin at the start of a search.
248248
/// When a search is not anchored (that's [`Anchored::No`]), regex engines
249-
/// will behave as if the pattern started with a `(?:s-u.)*?`. This prefix
249+
/// will behave as if the pattern started with a `(?s-u:.)*?`. This prefix
250250
/// permits a match to appear anywhere.
251251
///
252252
/// By default, the anchored mode is [`Anchored::No`].

0 commit comments

Comments
 (0)