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 let first = ref true in
iter iter
(fun x -> (fun x ->
if !first then first := false else Format.pp_print_string fmt sep; if !first then first := false else (
pp_x fmt x; Format.pp_print_string fmt sep;
Format.pp_print_cut fmt () Format.pp_print_cut fmt ()
);
pp_x fmt x;
) m; ) m;
Format.pp_print_string fmt stop Format.pp_print_string fmt stop
end end