Small documentation formatting fix
This commit is contained in:
@@ -152,8 +152,7 @@ declare_lint! {
|
|||||||
/// ```rust
|
/// ```rust
|
||||||
/// let _x = 0;
|
/// let _x = 0;
|
||||||
/// let y = _x + 1; // Here we are using `_x`, even though it has a leading
|
/// let y = _x + 1; // Here we are using `_x`, even though it has a leading
|
||||||
/// underscore.
|
/// // underscore. We should rename `_x` to `x`
|
||||||
/// // We should rename `_x` to `x`
|
|
||||||
/// ```
|
/// ```
|
||||||
declare_lint! {
|
declare_lint! {
|
||||||
pub USED_UNDERSCORE_BINDING,
|
pub USED_UNDERSCORE_BINDING,
|
||||||
@@ -166,10 +165,8 @@ declare_lint! {
|
|||||||
/// statement.
|
/// statement.
|
||||||
///
|
///
|
||||||
/// **Why is this bad?** Using a short circuit boolean condition as a statement
|
/// **Why is this bad?** Using a short circuit boolean condition as a statement
|
||||||
/// may
|
/// may hide the fact that the second part is executed or not depending on the
|
||||||
/// hide the fact that the second part is executed or not depending on the
|
/// outcome of the first part.
|
||||||
/// outcome of
|
|
||||||
/// the first part.
|
|
||||||
///
|
///
|
||||||
/// **Known problems:** None.
|
/// **Known problems:** None.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user