From 7604eed2a9bf5cf67f9bcf742f030148afb8fe2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20K=C3=BCber?= Date: Sun, 25 Aug 2019 11:27:04 -0700 Subject: [PATCH] review comments: reword comment --- src/librustc/traits/error_reporting.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc/traits/error_reporting.rs b/src/librustc/traits/error_reporting.rs index 07083f155d62..ff3626ffb857 100644 --- a/src/librustc/traits/error_reporting.rs +++ b/src/librustc/traits/error_reporting.rs @@ -967,10 +967,10 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { let self_ty = trait_ref.self_ty(); match self_ty.sty { ty::FnDef(def_id, _) => { - // We tried to apply the bound to an `fn`. Check wether calling it - // would evaluate to a type that *would* satisfy the trait binding. - // If it would, suggest calling it: `bar(foo)` -> `bar(foo)`. This - // case is *very* to hit if `foo` is `async`. + // We tried to apply the bound to an `fn`. Check whether calling it would evaluate + // to a type that *would* satisfy the trait binding. If it would, suggest calling + // it: `bar(foo)` -> `bar(foo)`. This case is *very* likely to be hit if `foo` is + // `async`. let output_ty = self_ty.fn_sig(self.tcx).output(); let new_trait_ref = ty::TraitRef { def_id: trait_ref.def_id(),