Skip to content

Commit d28de3b

Browse files
committed
Reword the title of this section
This is intended since there are multiple ways to suppress a destructor.
1 parent c203020 commit d28de3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/destructors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ let x = (&temp()).use_temp(); // ERROR
420420

421421
## Not running destructors
422422

423-
### `forget`
423+
### Manually preventing destructors
424424

425-
r[destructors.forget]
425+
r[destructors.manually-preventing]
426426

427427
[`std::mem::forget`] can be used to prevent the destructor of a variable from being run,
428428
and [`std::mem::ManuallyDrop`] provides a wrapper to prevent a

0 commit comments

Comments
 (0)