Skip to content

Commit 7604eed

Browse files
committed
review comments: reword comment
1 parent 5384d55 commit 7604eed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/traits/error_reporting.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,10 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
967967
let self_ty = trait_ref.self_ty();
968968
match self_ty.sty {
969969
ty::FnDef(def_id, _) => {
970-
// We tried to apply the bound to an `fn`. Check wether calling it
971-
// would evaluate to a type that *would* satisfy the trait binding.
972-
// If it would, suggest calling it: `bar(foo)` -> `bar(foo)`. This
973-
// case is *very* to hit if `foo` is `async`.
970+
// We tried to apply the bound to an `fn`. Check whether calling it would evaluate
971+
// to a type that *would* satisfy the trait binding. If it would, suggest calling
972+
// it: `bar(foo)` -> `bar(foo)`. This case is *very* likely to be hit if `foo` is
973+
// `async`.
974974
let output_ty = self_ty.fn_sig(self.tcx).output();
975975
let new_trait_ref = ty::TraitRef {
976976
def_id: trait_ref.def_id(),

0 commit comments

Comments
 (0)