Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 80707aa

Browse files
committed
improve description a bit
1 parent a57445d commit 80707aa

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clippy_lints/src/semicolon_block.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ declare_clippy_lint! {
7272
///
7373
/// ### Why is this bad?
7474
///
75-
/// Some may prefer if the semicolon is outside if a block is only one
76-
/// expression, as this allows rustfmt to make it singleline. In the case that
77-
/// it isn't, it should be inside.
78-
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block` for alternatives.
75+
/// Some may prefer if the semicolon is outside of a block if it is only one
76+
/// expression, as this allows rustfmt to make it singleline (and may just be
77+
/// more readable). In the case that it isn't, it should be inside.
78+
/// Take a look at both `semicolon_inside_block` and `semicolon_outside_block`
79+
/// for alternatives.
7980
///
8081
/// ### Example
8182
///

0 commit comments

Comments
 (0)