Skip to content

Commit

Permalink
correctly print unit type
Browse files Browse the repository at this point in the history
  • Loading branch information
FardaleM committed Jul 31, 2024
1 parent dd5a79e commit 9779d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/Type.ml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ end = struct
let map fn t = of_iter @@ Iter.map fn @@ to_iter t

let pp pp_ty ppf = function
| [||] -> Fmt.string ppf "()"
| [||] -> Fmt.string ppf "unit"
| [| elt |] -> pp_ty ppf elt
| t -> Fmt.pf ppf "@[<2>%a@]" Fmt.(array ~sep:(any " *@ ") pp_ty) t
end
Expand Down

0 comments on commit 9779d0b

Please sign in to comment.