Small documentation formatting fix

This commit is contained in:
mcarton
2018-01-20 23:32:02 +01:00
parent e6428873cb
commit eb009e2de9

View File

@@ -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.
/// ///