improve description a bit

This commit is contained in:
Centri3 2023-04-17 00:37:43 -05:00
parent a57445d4d6
commit 80707aa95f

View file

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