Skip to content

Commit 1169560

Browse files
committed
fix some links
1 parent f565460 commit 1169560

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type-coercions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sites are:
3939
```
4040

4141
For method calls, the receiver (`self` parameter) can only take advantage
42-
of [unsized coercions](#unsafe-coercions).
42+
of [unsized coercions](#unsized-coercions).
4343

4444
* Instantiations of struct or variant fields
4545

@@ -140,7 +140,7 @@ Coercion is allowed between the following types:
140140
- `*mut T`
141141
- `Box<T>`
142142

143-
and where `T` can obtained from `U` by [unsized coercion](#unsized-coercion).
143+
and where `T` can obtained from `U` by [unsized coercion](#unsized-coercions).
144144

145145
<!--In the future, coerce_inner will be recursively extended to tuples and
146146
structs. In addition, coercions from sub-traits to super-traits will be
@@ -155,7 +155,7 @@ relate to converting sized types to unsized types, and are permitted in a few
155155
cases where other coercions are not, as described above. They can still happen
156156
anywhere else a coercion can occur.
157157

158-
Two traits, [`Unsize`](Unsize) and [`CoerceUnsized`](CoerceUnsized), are used
158+
Two traits, [`Unsize`] and [`CoerceUnsized`], are used
159159
to assist in this process and expose it for library use. The compiler following
160160
coercions are built-in and, if `T` can be coerced to `U` with one of the, then
161161
the compiler will provide an implementation of `Unsize<U>` for `T`:

0 commit comments

Comments
 (0)