Skip to content

Commit 142898e

Browse files
Fix example for clippy::invalid_regex
1 parent 3a4e457 commit 142898e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/regex.rs

Lines changed: 1 addition & 1 deletion
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)