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