Skip to content

Commit f62eab4

Browse files
committed
Adjust description once more
1 parent f585414 commit f62eab4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/semicolon_block.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_span::Span;
88
declare_clippy_lint! {
99
/// ### What it does
1010
///
11-
/// Checks for semicolon terminated blocks containing only a single expression.
11+
/// Suggests moving the semicolon from a block inside of the block to its kast expression.
1212
///
1313
/// ### Why is this bad?
1414
///
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
declare_clippy_lint! {
3737
/// ### What it does
3838
///
39-
/// Checks for blocks containing only a single semicolon terminated statement.
39+
/// Suggests moving the semicolon from a block's final expression outside of the block.
4040
///
4141
/// ### Why is this bad?
4242
///
@@ -80,7 +80,7 @@ impl LateLintPass<'_> for SemicolonBlock {
8080
span,
8181
..
8282
} = stmt else { return };
83-
semicolon_outside_block(cx, block, expr, span)
83+
semicolon_outside_block(cx, block, expr, span);
8484
},
8585
StmtKind::Semi(Expr {
8686
kind: ExprKind::Block(block @ Block { expr: Some(tail), .. }, _),

0 commit comments

Comments
 (0)