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
This commit is contained in:
bors 2022-07-17 23:08:04 +00:00
commit fdb84cbfd2

View file

@ -19,7 +19,7 @@ declare_clippy_lint! {
/// ///
/// ### Example /// ### Example
/// ```ignore /// ```ignore
/// Regex::new("|") /// Regex::new("(")
/// ``` /// ```
#[clippy::version = "pre 1.29.0"] #[clippy::version = "pre 1.29.0"]
pub INVALID_REGEX, pub INVALID_REGEX,