Skip to content

Commit 5cec046

Browse files
adetaylortmandry
andauthored
Update text/3519-arbitrary-self-types-v2.md
Fix a link Co-authored-by: Tyler Mandry <tmandry@gmail.com>
1 parent 7c43c50 commit 5cec046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3519-arbitrary-self-types-v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ In any case, we think a blanket implementation is desirable:
447447
* It prevents `Deref` and `Receiver` having different `Target`s. That could possible lead to confusion if it prompted the compiler to explore different chains for these two different purposes.
448448
* If smart pointer type `P<T>` is in a crate, users of `P` to create `P<MyConcreteType>` will be able to use it as a `self` type for `MyConcreteType` without waiting for a new release of the `P` crate.
449449

450-
We found that [some crates use `Deref` to express an is-a not a has-a relationship](ttps://gist.github.com/davidhewitt/d0ed031fb05f6db98ee249ae089b268e) and so, ideally, might have preferred the option of setting up `Deref` and `self` candidacy separately. But, on discussion, we concluded that traits would be a better way to model those relationships.
450+
We found that [some crates use `Deref` to express an is-a not a has-a relationship](https://gist.github.com/davidhewitt/d0ed031fb05f6db98ee249ae089b268e) and so, ideally, might have preferred the option of setting up `Deref` and `self` candidacy separately. But, on discussion, we concluded that traits would be a better way to model those relationships.
451451

452452
## Explore both `Receiver` and `Deref` chains while identifying method candidates
453453

0 commit comments

Comments
 (0)