Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Hardee committed Jul 31, 2017
1 parent 937a0aa commit 017b77a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions clippy_lints/src/literal_digit_grouping.rs
Expand Up @@ -6,7 +6,8 @@ use syntax::ast::*;
use syntax_pos;
use utils::{span_help_and_lint, snippet_opt, in_external_macro};

/// **What it does:** Warns if a long integral or floating-point constant does not contain underscores.
/// **What it does:** Warns if a long integral or floating-point constant does
/// not contain underscores.
///
/// **Why is this bad?** Reading long numbers is difficult without separators.
///
Expand All @@ -23,9 +24,11 @@ declare_lint! {
"long integer literal without underscores"
}

/// **What it does:** Warns if an integral or floating-point constant is grouped inconsistently with underscores.
/// **What it does:** Warns if an integral or floating-point constant is
/// grouped inconsistently with underscores.
///
/// **Why is this bad?** Readers may incorrectly interpret inconsistently grouped digits.
/// **Why is this bad?** Readers may incorrectly interpret inconsistently
/// grouped digits.
///
/// **Known problems:** None.
///
Expand All @@ -40,7 +43,8 @@ declare_lint! {
"integer literals with digits grouped inconsistently"
}

/// **What it does:** Warns if the digits of an integral or floating-point constant are grouped into groups that
/// **What it does:** Warns if the digits of an integral or floating-point
/// constant are grouped into groups that
/// are too large.
///
/// **Why is this bad?** Negatively impacts readability.
Expand Down

0 comments on commit 017b77a

Please sign in to comment.