File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4657,7 +4657,7 @@ let report_error env loc ppf error =
4657
4657
(if args = 1 then " " else " s" )
4658
4658
arity;
4659
4659
4660
- (* Add suggestions for functions with correct arity *)
4660
+ (* Add suggestions for related functions with correct arity *)
4661
4661
(match function_name_opt with
4662
4662
| Some function_name -> (
4663
4663
let function_name_str =
@@ -4669,13 +4669,13 @@ let report_error env loc ppf error =
4669
4669
in
4670
4670
let suggestion = find_arity_suggestion env function_name_str args in
4671
4671
match suggestion with
4672
- | None -> () (* No suggestion found *)
4672
+ | None -> ()
4673
4673
| Some suggestion_str ->
4674
4674
fprintf ppf
4675
4675
" @,@,Hint: Try @{<info>%s@} instead (takes @{<info>%d@} argument%s)."
4676
4676
suggestion_str args
4677
4677
(if args = 1 then " " else " s" ))
4678
- | None -> () (* Function name not available *) );
4678
+ | None -> () );
4679
4679
4680
4680
fprintf ppf " @]"
4681
4681
| Field_not_optional (name , typ ) ->
You can’t perform that action at this time.
0 commit comments