File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1464,7 +1464,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
1464
1464
/// declaration like `self: SomeType` into either `self`,
1465
1465
/// `&self`, `&mut self`, or `Box<self>`. We do this here
1466
1466
/// by some simple pattern matching. A more precise check
1467
- /// is done later in `check_method_self_type ()`.
1467
+ /// is done later in `check_method_receiver ()`.
1468
1468
///
1469
1469
/// Examples:
1470
1470
///
@@ -1475,7 +1475,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
1475
1475
/// fn method2(self: &T); // ExplicitSelf::ByValue
1476
1476
/// fn method3(self: Box<&T>); // ExplicitSelf::ByBox
1477
1477
///
1478
- /// // Invalid cases will be caught later by `check_method_self_type `:
1478
+ /// // Invalid cases will be caught later by `check_method_receiver `:
1479
1479
/// fn method_err1(self: &mut T); // ExplicitSelf::ByReference
1480
1480
/// }
1481
1481
/// ```
You can’t perform that action at this time.
0 commit comments