]> git.lizzy.rs Git - rust.git/commitdiff
Fix link in trivial_regex
authorTuomas Siipola <siiptuo@kapsi.fi>
Tue, 12 Sep 2017 16:04:57 +0000 (19:04 +0300)
committerTuomas Siipola <siiptuo@kapsi.fi>
Tue, 12 Sep 2017 16:08:25 +0000 (19:08 +0300)
clippy_lints/src/regex.rs

index a18bf628601c3cb559f8047061d4912315dce180..e73b98756a14d7d5de7b509f003387a1366b57a3 100644 (file)
     "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`