Skip to content

Commit 37cea54

Browse files
committed
minor: tweak comment
1 parent 66ee618 commit 37cea54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ide/src/inlay_hints/closing_brace.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ pub(super) fn hints(
5252
let module = ast::Module::cast(list.syntax().parent()?)?;
5353
(format!("mod {}", module.name()?), module.name().map(name))
5454
} else if let Some(label) = ast::Label::cast(node.clone()) {
55-
// in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`, to respect the `min_lines` config
55+
// in this case, `ast::Label` could be seen as a part of `ast::BlockExpr`
56+
// the actual number of lines in this case should be the line count of the parent BlockExpr, which the `min_lines` config care about
5657
node = node.parent()?;
5758
let block = label.syntax().parent().and_then(ast::BlockExpr::cast)?;
5859
closing_token = block.stmt_list()?.r_curly_token()?;

0 commit comments

Comments
 (0)