Skip to content

Commit 0d6f579

Browse files
RalfJungehuss
andcommitted
add ManuallyDrop link
Co-authored-by: Eric Huss <[email protected]>
1 parent 0c8df59 commit 0d6f579

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items/unions.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ field accesses.
8383

8484
When a union is dropped, it cannot know which of its fields needs to be dropped.
8585
For this reason, all union fields must either be of a `Copy` type or of the
86-
shape `ManuallyDrop<_>`. This ensures that a union does not need to drop
86+
shape [`ManuallyDrop<_>`]. This ensures that a union does not need to drop
8787
anything when it goes out of scope.
8888

8989
Like for structs and enums, it is possible to `impl Drop` for a union to
@@ -177,3 +177,4 @@ checking, etc etc etc).
177177
[_WhereClause_]: generics.md#where-clauses
178178
[_StructFields_]: structs.md
179179
[`transmute`]: ../../std/mem/fn.transmute.html
180+
[`ManuallyDrop<_>`]: ../../std/mem/struct.ManuallyDrop.html

0 commit comments

Comments
 (0)