Skip to content

Commit d641699

Browse files
committed
Fix broken links.
1 parent e138cf7 commit d641699

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/items/traits.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ r[items.traits.dyn-compatible.associated-functions]
102102
* Dispatchable functions must:
103103
* Not have any type parameters (although lifetime parameters are allowed).
104104
* Be a [method] that does not use `Self` except in the type of the receiver.
105-
* Have a receiver with one of the following types:
105+
* Have a receiver implementing [`Receiver`], for example one of the following types:
106106
* `&Self` (i.e. `&self`)
107107
* `&mut Self` (i.e `&mut self`)
108-
* [`Box<Self>`]
109-
* [`Rc<Self>`]
110-
* [`Arc<Self>`]
111-
* [`Pin<P>`] where `P` is one of the types above
108+
* `Box<Self>`
109+
* `Rc<Self>`
110+
* `Arc<Self>`
111+
* `Pin<P>` where `P` is one of the types above
112112
* Not have an opaque return type; that is,
113113
* Not be an `async fn` (which has a hidden `Future` type).
114114
* Not have a return position `impl Trait` type (`fn example(&self) -> impl Trait`).
@@ -383,10 +383,7 @@ fn main() {
383383
[trait implementation]: implementations.md#trait-implementations
384384
[`Send`]: ../special-types-and-traits.md#send
385385
[`Sync`]: ../special-types-and-traits.md#sync
386-
[`Arc<Self>`]: ../special-types-and-traits.md#arct
387-
[`Box<Self>`]: ../special-types-and-traits.md#boxt
388-
[`Pin<P>`]: ../special-types-and-traits.md#pinp
389-
[`Rc<Self>`]: ../special-types-and-traits.md#rct
386+
[`Receiver`]: ../special-types-and-traits.md#receiver
390387
[`async`]: functions.md#async-functions
391388
[`const`]: functions.md#const-functions
392389
[type namespace]: ../names/namespaces.md

0 commit comments

Comments
 (0)