Skip to content

Commit a82dccd

Browse files
format
1 parent 5108315 commit a82dccd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/Fmt_ast.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ and fmt_function ?(last_arg = false) ?force_closing_paren ~ctx ~ctx0 ?pro
16461646
let pro =
16471647
wrap_intro
16481648
( pro_outer
1649-
$ hvbox_if has_cmts_outer 0
1649+
$ hvbox_if has_cmts_outer 0
16501650
( cmts_outer
16511651
$ Params.Exp.box_fun_decl ~ctx0 c.conf
16521652
( pro_inner $ fmt_label label label_sep $ cmts_inner

lib/Params.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,13 @@ module Exp = struct
320320
if parens then false
321321
else
322322
match ctx0 with Exp {pexp_desc= Pexp_infix _; _} -> false | _ -> true
323+
323324
let function_inner_pro ~has_cmts_outer ~ctx0 =
324325
if has_cmts_outer then false
325326
else
326327
match ctx0 with
327-
| Str _ | Lb _ | Exp {pexp_desc= Pexp_ifthenelse _ | Pexp_let _; _} -> false
328+
| Str _ | Lb _ | Exp {pexp_desc= Pexp_ifthenelse _ | Pexp_let _; _} ->
329+
false
328330
| _ -> true
329331
end
330332

0 commit comments

Comments
 (0)