Skip to content

Commit 4508576

Browse files
committed
Print () instead of Doc.nil
1 parent 118294a commit 4508576

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/syntax/src/res_printer.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,8 +834,10 @@ and print_mod_type ~state mod_type cmt_tbl =
834834
print_attributes ~state attrs cmt_tbl
835835
in
836836
let lbl_doc =
837-
if lbl.Location.txt = "_" || lbl.txt = "*" then
838-
Doc.nil
837+
if lbl.Location.txt = "_" then Doc.nil
838+
else if lbl.txt = "*" then
839+
let doc = Doc.text "()" in
840+
print_comments doc cmt_tbl lbl.loc
839841
else
840842
let doc = Doc.text lbl.txt in
841843
print_comments doc cmt_tbl lbl.loc

0 commit comments

Comments
 (0)