diff --git a/clippy_lints/src/regex.rs b/clippy_lints/src/regex.rs index a18bf628601..e73b98756a1 100644 --- a/clippy_lints/src/regex.rs +++ b/clippy_lints/src/regex.rs @@ -29,10 +29,8 @@ declare_lint! { "invalid regular expressions" } -/// **What it does:** Checks for trivial [regex] creation (with `Regex::new`, -/// `RegexBuilder::new` or `RegexSet::new`). -/// -/// [regex]: https://crates.io/crates/regex +/// **What it does:** Checks for trivial [regex](https://crates.io/crates/regex) +/// creation (with `Regex::new`, `RegexBuilder::new` or `RegexSet::new`). /// /// **Why is this bad?** Matching the regex can likely be replaced by `==` or /// `str::starts_with`, `str::ends_with` or `std::contains` or other `str`