Skip to content

Commit 1449f95

Browse files
committed
improve comments
1 parent 8e32074 commit 1449f95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/ml/typecore.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4657,7 +4657,7 @@ let report_error env loc ppf error =
46574657
(if args = 1 then "" else "s")
46584658
arity;
46594659
4660-
(* Add suggestions for functions with correct arity *)
4660+
(* Add suggestions for related functions with correct arity *)
46614661
(match function_name_opt with
46624662
| Some function_name -> (
46634663
let function_name_str =
@@ -4669,13 +4669,13 @@ let report_error env loc ppf error =
46694669
in
46704670
let suggestion = find_arity_suggestion env function_name_str args in
46714671
match suggestion with
4672-
| None -> () (* No suggestion found *)
4672+
| None -> ()
46734673
| Some suggestion_str ->
46744674
fprintf ppf
46754675
"@,@,Hint: Try @{<info>%s@} instead (takes @{<info>%d@} argument%s)."
46764676
suggestion_str args
46774677
(if args = 1 then "" else "s"))
4678-
| None -> () (* Function name not available *));
4678+
| None -> ());
46794679
46804680
fprintf ppf "@]"
46814681
| Field_not_optional (name, typ) ->

0 commit comments

Comments
 (0)