Skip to content

Commit ec988a5

Browse files
committed
improve comments
1 parent 9765092 commit ec988a5

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
@@ -4655,7 +4655,7 @@ let report_error env loc ppf error =
46554655
(if args = 1 then "" else "s")
46564656
arity;
46574657
4658-
(* Add suggestions for functions with correct arity *)
4658+
(* Add suggestions for related functions with correct arity *)
46594659
(match function_name_opt with
46604660
| Some function_name -> (
46614661
let function_name_str =
@@ -4667,13 +4667,13 @@ let report_error env loc ppf error =
46674667
in
46684668
let suggestion = find_arity_suggestion env function_name_str args in
46694669
match suggestion with
4670-
| None -> () (* No suggestion found *)
4670+
| None -> ()
46714671
| Some suggestion_str ->
46724672
fprintf ppf
46734673
"@,@,Hint: Try @{<info>%s@} instead (takes @{<info>%d@} argument%s)."
46744674
suggestion_str args
46754675
(if args = 1 then "" else "s"))
4676-
| None -> () (* Function name not available *));
4676+
| None -> ());
46774677
46784678
fprintf ppf "@]"
46794679
| Field_not_optional (name, typ) ->

0 commit comments

Comments
 (0)