Skip to content

Commit 84f896f

Browse files
committed
Fix broken links.
1 parent e138cf7 commit 84f896f

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/items/associated-items.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ If the type of the `self` parameter is specified, it is limited to types resolvi
113113
to a type implementing the [`Receiver`] trait with a `Target` associated type
114114
matching the implementing type. Typically, this means the type itself, a
115115
reference to it, or a smart pointer referring to it (such as [`Box<Self>`]
116-
or [`Arc<Self>`]).
116+
or `Arc<Self>`).
117117

118118
This can also include the contextual type alias `Self`, other type aliases,
119119
or associated type projections resolving to the implementing type.
@@ -555,7 +555,6 @@ fn main() {
555555
[_OuterAttribute_]: ../attributes.md
556556
[_TypeAlias_]: type-aliases.md
557557
[_Visibility_]: ../visibility-and-privacy.md
558-
[`Arc<Self>`]: ../special-types-and-traits.md#arct
559558
[`Box<Self>`]: ../special-types-and-traits.md#boxt
560559
[`Pin<P>`]: ../special-types-and-traits.md#pinp
561560
[`Rc<Self>`]: ../special-types-and-traits.md#rct

src/items/traits.md

+5-7
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`)
108108
* [`Box<Self>`]
109-
* [`Rc<Self>`]
110-
* [`Arc<Self>`]
111-
* [`Pin<P>`] where `P` is one of the types above
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,8 @@ 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
387386
[`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
387+
[`Receiver`]: ../special-types-and-traits.md#receiver
390388
[`async`]: functions.md#async-functions
391389
[`const`]: functions.md#const-functions
392390
[type namespace]: ../names/namespaces.md

0 commit comments

Comments
 (0)