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 =
34573457 ( wrap_fits_breaks c.conf " [" " ]" (list_fl params fmt_param)
34583458 $ space_break ) )
34593459
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 ; _} =
34613462 protect c (Td decl)
34623463 @@
34633464 let { ptype_name= {txt; loc}
@@ -3500,8 +3501,7 @@ and fmt_type_declaration c ?(kw = "") ?(nonrec_kw="") ?name ?(eq = "=") {ast= de
35003501 ( str kw
35013502 $ fmt_extension_suffix c ext
35023503 $ fmt_attributes c attrs_before
3503- $ str nonrec_kw
3504- $ str " "
3504+ $ str nonrec_kw $ str " "
35053505 $ hvbox_if
35063506 (not (List. is_empty ptype_params))
35073507 0
@@ -4552,7 +4552,9 @@ and fmt_type c ?eq rec_flag decls ctx =
45524552 let fmt_decl c ctx ~prev ~next :_ decl =
45534553 let first = Option. is_none prev in
45544554 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 )
45564558 in
45574559 fmt_type_declaration c ~kw ?nonrec_kw ?eq (sub_td ~ctx decl)
45584560 in
You can’t perform that action at this time.
0 commit comments