1
Fork 0

Update lint documentation to use markdown headlines

This commit is contained in:
xFrednet 2021-07-02 20:37:11 +02:00 committed by flip1995
parent ac0fd99194
commit 12c61612f7
No known key found for this signature in database
GPG key ID: 1CA0DF2AF59D68A5
230 changed files with 2717 additions and 2474 deletions

View file

@ -7,15 +7,14 @@ use rustc_lint::{LateContext, LateLintPass};
use rustc_session::{declare_lint_pass, declare_tool_lint};
declare_clippy_lint! {
/// **What it does:** Checks for async blocks that yield values of types
/// ### What it does
/// Checks for async blocks that yield values of types
/// that can themselves be awaited.
///
/// **Why is this bad?** An await is likely missing.
///
/// **Known problems:** None.
///
/// **Example:**
/// ### Why is this bad?
/// An await is likely missing.
///
/// ### Example
/// ```rust
/// async fn foo() {}
///