File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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> {
14641464 /// declaration like `self: SomeType` into either `self`,
14651465 /// `&self`, `&mut self`, or `Box<self>`. We do this here
14661466 /// 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 ()`.
14681468 ///
14691469 /// Examples:
14701470 ///
@@ -1475,7 +1475,7 @@ impl<'tcx> ExplicitSelf<'tcx> {
14751475 /// fn method2(self: &T); // ExplicitSelf::ByValue
14761476 /// fn method3(self: Box<&T>); // ExplicitSelf::ByBox
14771477 ///
1478- /// // Invalid cases will be caught later by `check_method_self_type `:
1478+ /// // Invalid cases will be caught later by `check_method_receiver `:
14791479 /// fn method_err1(self: &mut T); // ExplicitSelf::ByReference
14801480 /// }
14811481 /// ```
You can’t perform that action at this time.
0 commit comments