mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
option_if_let_else: update known problems wording
This commit is contained in:
parent
e8703a0ce2
commit
ca5f4a1dee
1 changed files with 5 additions and 5 deletions
|
@ -25,11 +25,11 @@ declare_clippy_lint! {
|
||||||
/// Using the dedicated functions of the `Option` type is clearer and
|
/// Using the dedicated functions of the `Option` type is clearer and
|
||||||
/// more concise than an `if let` expression.
|
/// more concise than an `if let` expression.
|
||||||
///
|
///
|
||||||
/// ### Known problems
|
/// ### Notes
|
||||||
/// This lint uses a deliberately conservative metric for checking
|
/// This lint uses a deliberately conservative metric for checking if the
|
||||||
/// if the inside of either body contains breaks or continues which will
|
/// inside of either body contains loop control expressions `break` or
|
||||||
/// cause it to not suggest a fix if either block contains a loop with
|
/// `continue` (which cannot be used within closures). If these are found,
|
||||||
/// continues or breaks contained within the loop.
|
/// this lint will not be raised.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|
Loading…
Reference in a new issue