Co-authored-by: fee1-dead <ent3rm4n@gmail.com>
This commit is contained in:
lcnr 2022-11-27 20:48:31 +01:00 committed by GitHub
parent 4f07008419
commit 99c3dda066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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() }