diff options
| author | Centri3 <114838443+Centri3@users.noreply.github.com> | 2023-04-17 00:37:43 -0500 |
|---|---|---|
| committer | Centri3 <114838443+Centri3@users.noreply.github.com> | 2023-04-17 00:37:43 -0500 |
| commit | 80707aa95faae4acf8b35abf0daf4626afdb446e (patch) | |
| tree | a507fa7c03e7bc25314a574ce886e8846e3ef30e | |
| parent | a57445d4d6c14adfd2103796a577805a04bb4db5 (diff) | |
| download | rust-80707aa95faae4acf8b35abf0daf4626afdb446e.tar.gz rust-80707aa95faae4acf8b35abf0daf4626afdb446e.zip | |
improve description a bit
| -rw-r--r-- | clippy_lints/src/semicolon_block.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clippy_lints/src/semicolon_block.rs b/clippy_lints/src/semicolon_block.rs index c9689454c63..8cdfbd5c495 100644 --- a/clippy_lints/src/semicolon_block.rs +++ b/clippy_lints/src/semicolon_block.rs @@ -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 /// |
