File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3457,7 +3457,8 @@ and fmt_class_params c ctx params =
3457
3457
( wrap_fits_breaks c.conf " [" " ]" (list_fl params fmt_param)
3458
3458
$ space_break ) )
3459
3459
3460
- and fmt_type_declaration c ?(kw = " " ) ?(nonrec_kw =" " ) ?name ?(eq = " =" ) {ast = decl ; _} =
3460
+ and fmt_type_declaration c ?(kw = " " ) ?(nonrec_kw = " " ) ?name ?(eq = " =" )
3461
+ {ast = decl ; _} =
3461
3462
protect c (Td decl)
3462
3463
@@
3463
3464
let { ptype_name= {txt; loc}
@@ -3500,8 +3501,7 @@ and fmt_type_declaration c ?(kw = "") ?(nonrec_kw="") ?name ?(eq = "=") {ast= de
3500
3501
( str kw
3501
3502
$ fmt_extension_suffix c ext
3502
3503
$ fmt_attributes c attrs_before
3503
- $ str nonrec_kw
3504
- $ str " "
3504
+ $ str nonrec_kw $ str " "
3505
3505
$ hvbox_if
3506
3506
(not (List. is_empty ptype_params))
3507
3507
0
@@ -4552,7 +4552,9 @@ and fmt_type c ?eq rec_flag decls ctx =
4552
4552
let fmt_decl c ctx ~prev ~next :_ decl =
4553
4553
let first = Option. is_none prev in
4554
4554
let kw, nonrec_kw =
4555
- if first then if is_rec then (" type" , None ) else (" type" , Some " nonrec" ) else (" and" , None )
4555
+ if first then
4556
+ if is_rec then (" type" , None ) else (" type" , Some " nonrec" )
4557
+ else (" and" , None )
4556
4558
in
4557
4559
fmt_type_declaration c ~kw ?nonrec_kw ?eq (sub_td ~ctx decl)
4558
4560
in
You can’t perform that action at this time.
0 commit comments