Skip to content

Commit

Permalink
Merge pull request #1431 from madsmtm/fix-self-coercion-note
Browse files Browse the repository at this point in the history
Fix note on `self` coercion
  • Loading branch information
Tiger0202 committed Dec 4, 2023
2 parents 96086c3 + 8dc98ab commit 6d5d304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ sites are:
}
```

For method calls, the receiver (`self` parameter) can only take advantage
of [unsized coercions](#unsized-coercions).
For method calls, the receiver (`self` parameter) type is coerced
differently, see the documentation on [method-call expressions] for details.

* Instantiations of struct, union, or enum variant fields

Expand Down Expand Up @@ -273,3 +273,4 @@ precisely.
[type cast operator]: expressions/operator-expr.md#type-cast-expressions
[`Unsize`]: ../std/marker/trait.Unsize.html
[`CoerceUnsized`]: ../std/ops/trait.CoerceUnsized.html
[method-call expressions]: expressions/method-call-expr.md

0 comments on commit 6d5d304

Please sign in to comment.