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
matthewjasper committed Dec 4, 2023
2 parents 21a27e1 + 1b00b70 commit 692d216
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 692d216

Please sign in to comment.