diff --git a/crates/hir_ty/src/infer/closure.rs b/crates/hir_ty/src/infer/closure.rs index b4ce22b9eb..ef3293747c 100644 --- a/crates/hir_ty/src/infer/closure.rs +++ b/crates/hir_ty/src/infer/closure.rs @@ -37,7 +37,7 @@ impl InferenceContext<'_> { } fn deduce_sig_from_dyn_ty(&self, dyn_ty: &DynTy) -> Option { - // Search for predicates like `$self: FnX` and `<$self as FnOnce<...>>::Output == Ret` + // Search for a predicate like `<$self as FnX>::Output == Ret` let fn_traits: SmallVec<[ChalkTraitId; 3]> = utils::fn_traits(self.db.upcast(), self.owner.module(self.db.upcast()).krate())