mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Small documentation formatting fix
This commit is contained in:
parent
e6428873cb
commit
eb009e2de9
1 changed files with 3 additions and 6 deletions
|
@ -152,8 +152,7 @@ declare_lint! {
|
|||
/// ```rust
|
||||
/// let _x = 0;
|
||||
/// let y = _x + 1; // Here we are using `_x`, even though it has a leading
|
||||
/// underscore.
|
||||
/// // We should rename `_x` to `x`
|
||||
/// // underscore. We should rename `_x` to `x`
|
||||
/// ```
|
||||
declare_lint! {
|
||||
pub USED_UNDERSCORE_BINDING,
|
||||
|
@ -166,10 +165,8 @@ declare_lint! {
|
|||
/// statement.
|
||||
///
|
||||
/// **Why is this bad?** Using a short circuit boolean condition as a statement
|
||||
/// may
|
||||
/// hide the fact that the second part is executed or not depending on the
|
||||
/// outcome of
|
||||
/// the first part.
|
||||
/// may hide the fact that the second part is executed or not depending on the
|
||||
/// outcome of the first part.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue