Skip to content

Commit 12debe4

Browse files
authored
Fix error message (#7734)
1 parent 8057ded commit 12debe4

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
@@ -4676,11 +4676,11 @@ let report_error env loc ppf error =
46764676
fprintf ppf
46774677
"@,\
46784678
@,\
4679-
It is called with @{<error>%d@} argument%s but requires%s \
4679+
It is called with @{<error>%d@} argument%s but%s requires \
46804680
@{<info>%d@}."
46814681
args
4682-
(if args > arity then " just" else "")
46834682
(if args = 1 then "" else "s")
4683+
(if args > arity then " just" else "")
46844684
arity;
46854685
46864686
(* Add suggestions for related functions with correct arity *)

0 commit comments

Comments
 (0)