clean up a few lint docs

This commit is contained in:
Matthias Krüger
2020-03-18 02:50:39 +01:00
parent 23549a8c36
commit 2204bf20ae
6 changed files with 14 additions and 10 deletions

View File

@@ -11,16 +11,14 @@ declare_clippy_lint! {
/// **What it does:** Checks for `assert!(true)` and `assert!(false)` calls.
///
/// **Why is this bad?** Will be optimized out by the compiler or should probably be replaced by a
/// panic!() or unreachable!()
/// `panic!()` or `unreachable!()`
///
/// **Known problems:** None
///
/// **Example:**
/// ```rust,ignore
/// assert!(false)
/// // or
/// assert!(true)
/// // or
/// const B: bool = false;
/// assert!(B)
/// ```