Skip to content

Commit fdb84cb

Browse files
committed
Auto merge of #9196 - alex-semenyuk:invalid_regex, r=Jarcho
Fix example for `clippy::invalid_regex` Close #9194 changelog: previous example doesn't trigger lint
2 parents 3a4e457 + 142898e commit fdb84cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/regex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare_clippy_lint! {
1919
///
2020
/// ### Example
2121
/// ```ignore
22-
/// Regex::new("|")
22+
/// Regex::new("(")
2323
/// ```
2424
#[clippy::version = "pre 1.29.0"]
2525
pub INVALID_REGEX,

0 commit comments

Comments
 (0)