]> git.lizzy.rs Git - rust.git/commitdiff
fix type
authorlcnr <rust@lcnr.de>
Sun, 27 Nov 2022 19:48:31 +0000 (20:48 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Nov 2022 19:48:31 +0000 (20:48 +0100)
Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
compiler/rustc_hir_typeck/src/callee.rs

index cd1322d1a3bcc8a998f88da0dd7486ec1858f52f..b390d34b37bdabccdfbd9e9666f65eba002be01b 100644 (file)
@@ -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() }