From 1b00b703825387edc02ddd2030d478cb5d78fa9f Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sat, 2 Dec 2023 18:59:31 +0100 Subject: [PATCH] Fix note on `self` coercion --- src/type-coercions.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/type-coercions.md b/src/type-coercions.md index 45d81d386..2bdbb5349 100644 --- a/src/type-coercions.md +++ b/src/type-coercions.md @@ -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 @@ -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