improve description a bit
This commit is contained in:
parent
a57445d4d6
commit
80707aa95f
1 changed files with 5 additions and 4 deletions
|
|
@ -72,10 +72,11 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Why is this bad?
|
||||
///
|
||||
/// Some may prefer if the semicolon is outside if a block is only one
|
||||
/// expression, as this allows rustfmt to make it singleline. In the case that
|
||||
/// it isn't, it should be inside.
|
||||
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block` for alternatives.
|
||||
/// Some may prefer if the semicolon is outside of a block if it is only one
|
||||
/// expression, as this allows rustfmt to make it singleline (and may just be
|
||||
/// more readable). In the case that it isn't, it should be inside.
|
||||
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block`
|
||||
/// for alternatives.
|
||||
///
|
||||
/// ### Example
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue