From 99c3dda06649ae9878138366bf2423ce45ce198b Mon Sep 17 00:00:00 2001 From: lcnr Date: Sun, 27 Nov 2022 20:48:31 +0100 Subject: [PATCH] fix type Co-authored-by: fee1-dead --- compiler/rustc_hir_typeck/src/callee.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_hir_typeck/src/callee.rs b/compiler/rustc_hir_typeck/src/callee.rs index cd1322d1a3b..b390d34b37b 100644 --- a/compiler/rustc_hir_typeck/src/callee.rs +++ b/compiler/rustc_hir_typeck/src/callee.rs @@ -181,7 +181,7 @@ fn try_overloaded_call_step( // where F:Fn and so forth. In the particular case of types // like `f: &mut FnMut()`, if there is a call `f()`, we would // normally translate to `FnMut::call_mut(&mut f, ())`, but - // that winds up requiring the user to potentially mark their + // that winds up potentially requiring the user to mark their // variable as `mut` which feels unnecessary and unexpected. // // fn foo(f: &mut impl FnMut()) { f() }