Skip to content

Commit 83d1884

Browse files
committed
chore: fix comment.
1 parent 646fc14 commit 83d1884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parsing/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ fn handle_jsx_surrounding_parens<'a>(inner_items: PrintItems, context: &mut Cont
26242624
fn is_jsx_paren_expr_handled_node(node: &Node, context: &Context) -> bool {
26252625
context.config.jsx_multi_line_parens
26262626
&& matches!(node.kind(), NodeKind::JSXElement | NodeKind::JSXFragment)
2627-
// do not allow in top level expr statement or argument
2627+
// do not allow in expr statement or argument
26282628
&& !matches!(node.parent().unwrap().kind(), NodeKind::ExprStmt
26292629
| NodeKind::ExprOrSpread
26302630
| NodeKind::JSXElement

0 commit comments

Comments
 (0)