1
Fork 0

Suggest removing &mut from borrow of &mut

Fix a typo: minding -> binding
Add test for &mut &mut
This commit is contained in:
Lzu Tao 2020-10-08 14:21:12 +00:00
parent 382848989f
commit ab226bda9a
4 changed files with 60 additions and 46 deletions

View file

@ -813,7 +813,7 @@ pub struct BlockTailInfo {
/// argument, or the return place.
#[derive(Clone, Debug, TyEncodable, TyDecodable, HashStable, TypeFoldable)]
pub struct LocalDecl<'tcx> {
/// Whether this is a mutable minding (i.e., `let x` or `let mut x`).
/// Whether this is a mutable binding (i.e., `let x` or `let mut x`).
///
/// Temporaries and the return place are always mutable.
pub mutability: Mutability,