mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Fix formatting of literals in closure args
This commit is contained in:
parent
61fb9e45fb
commit
cc611533e0
7 changed files with 65 additions and 4 deletions
|
@ -1837,7 +1837,7 @@ fn fmt_closure<'a>(
|
|||
}
|
||||
|
||||
arg.item
|
||||
.format_with_options(buf, Parens::InAsPattern, Newlines::No, indent);
|
||||
.format_with_options(buf, Parens::InClosurePattern, Newlines::No, indent);
|
||||
|
||||
if !arg.after.is_empty() {
|
||||
if starts_with_inline_comment(arg.after.iter()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue