mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fix placement of comma after implements in pnc apply patterns
This commit is contained in:
parent
2bbcbbd5c1
commit
2e4e4bb957
5 changed files with 61 additions and 3 deletions
|
@ -563,9 +563,9 @@ pub fn pattern_fmt_apply(
|
|||
buf.push_str("(implements)");
|
||||
} else {
|
||||
fmt_pattern_only(&arg.item, buf, parens, indent_more, arg.item.is_multiline());
|
||||
if use_commas_and_parens && (!is_last_arg || is_multiline) {
|
||||
buf.push(',');
|
||||
}
|
||||
}
|
||||
if use_commas_and_parens && (!is_last_arg || is_multiline) {
|
||||
buf.push(',');
|
||||
}
|
||||
|
||||
last_after = arg.after;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue