fix the same uglyness in Set.print

This commit is contained in:
Simon Cruanes 2015-10-26 17:22:56 +01:00
parent 5a2c7f3f60
commit 59835f8ef2

View file

@ -77,9 +77,11 @@ module Make(O : Map.OrderedType) = struct
let first = ref true in
iter
(fun x ->
if !first then first := false else Format.pp_print_string fmt sep;
if !first then first := false else (
Format.pp_print_string fmt sep;
Format.pp_print_cut fmt ()
);
pp_x fmt x;
Format.pp_print_cut fmt ()
) m;
Format.pp_print_string fmt stop
end