Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/ml/typecore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4675,11 +4675,11 @@ let report_error env loc ppf error =
fprintf ppf
"@,\
@,\
It is called with @{<error>%d@} argument%s but requires%s \
It is called with @{<error>%d@} argument%s but%s requires \
@{<info>%d@}."
args
(if args > arity then " just" else "")
(if args = 1 then "" else "s")
(if args > arity then " just" else "")
arity;

(* Add suggestions for related functions with correct arity *)
Expand Down