diff options
| author | Jade <software@lfcode.ca> | 2021-08-05 19:46:26 -0700 |
|---|---|---|
| committer | Jade <software@lfcode.ca> | 2021-08-10 14:40:26 -0700 |
| commit | 23d398b1848571709a0cbb8a08436f6de56d43a8 (patch) | |
| tree | fb1947d197f94ec8243ae0f7e6f9d6c10ef43b26 /clippy_lints | |
| parent | c78cc7ac1f1e89cd2e12d29374e1c5e6110d9217 (diff) | |
| download | rust-23d398b1848571709a0cbb8a08436f6de56d43a8.tar.gz rust-23d398b1848571709a0cbb8a08436f6de56d43a8.zip | |
tree-wide: Fix all the rustdoc warnings
Diffstat (limited to 'clippy_lints')
| -rw-r--r-- | clippy_lints/src/needless_continue.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/needless_for_each.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/needless_continue.rs b/clippy_lints/src/needless_continue.rs index 5088b8bb0d3..5a50cc48d61 100644 --- a/clippy_lints/src/needless_continue.rs +++ b/clippy_lints/src/needless_continue.rs @@ -422,7 +422,7 @@ fn check_and_warn<'a>(cx: &EarlyContext<'_>, expr: &'a ast::Expr) { /// /// is transformed to /// -/// ```ignore +/// ```text /// { /// let x = 5; /// ``` diff --git a/clippy_lints/src/needless_for_each.rs b/clippy_lints/src/needless_for_each.rs index d9aa42fe8ee..9a6ddc72ce5 100644 --- a/clippy_lints/src/needless_for_each.rs +++ b/clippy_lints/src/needless_for_each.rs @@ -122,7 +122,7 @@ impl LateLintPass<'_> for NeedlessForEach { /// 2. Detect use of `return` in `Loop` in the closure body. /// /// NOTE: The functionality of this type is similar to -/// [`crate::utilts::visitors::find_all_ret_expressions`], but we can't use +/// [`clippy_utils::visitors::find_all_ret_expressions`], but we can't use /// `find_all_ret_expressions` instead of this type. The reasons are: /// 1. `find_all_ret_expressions` passes the argument of `ExprKind::Ret` to a callback, but what we /// need here is `ExprKind::Ret` itself. |
