Fix example for clippy::invalid_regex

This commit is contained in:
alexey semenyuk 2022-07-18 00:35:34 +03:00 committed by GitHub
parent 3a4e4575ed
commit 142898e544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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