Skip to content

Commit e405758

Browse files
committed
[pretty-printing]: fix construction application display in match patterns
1 parent e80ff3e commit e405758

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/ecPrinting.ml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -817,13 +817,9 @@ let pp_match_form (ppe : PPEnv.t) pp_sub outer fmt (b, bs) =
817817
| [] ->
818818
Format.fprintf fmt "| %a" pp_opname ([], name)
819819

820-
| [x] ->
821-
Format.fprintf fmt "| %a %a"
822-
pp_opname ([], name) (pp_local ppe) x
823-
824820
| _ ->
825-
Format.fprintf fmt "| %a (%a)" pp_opname ([], name)
826-
(pp_list ", " (pp_local ppe)) xs
821+
Format.fprintf fmt "| %a %a" pp_opname ([], name)
822+
(pp_list " " (pp_local ppe)) xs
827823
end;
828824

829825
Format.fprintf fmt " => %a"

0 commit comments

Comments
 (0)