Skip to content

Commit 2c6b961

Browse files
committed
Fix error message
1 parent 118294a commit 2c6b961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/ml/typecore.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4675,11 +4675,11 @@ let report_error env loc ppf error =
46754675
fprintf ppf
46764676
"@,\
46774677
@,\
4678-
It is called with @{<error>%d@} argument%s but requires%s \
4678+
It is called with @{<error>%d@} argument%s but%s requires \
46794679
@{<info>%d@}."
46804680
args
4681-
(if args > arity then " just" else "")
46824681
(if args = 1 then "" else "s")
4682+
(if args > arity then " just" else "")
46834683
arity;
46844684
46854685
(* Add suggestions for related functions with correct arity *)

0 commit comments

Comments
 (0)