Skip to content

Commit 9b2bd19

Browse files
authored
Merge pull request #13 from vapdrs/patch-1
Correct Uninitialized footnote 2 typo
2 parents 3ffe70a + ca7ca58 commit 9b2bd19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/advanced_unsafety/uninitialized.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,5 @@ This is not an exhaustive list: ultimately, having an uninitialized value is UB
174174
[`ptr::copy`]: https://doc.rust-lang.org/stable/std/ptr/fn.copy.html
175175

176176
[^1]: Be sure to use `&[MaybeUninit<u8>]` if treating a type with uninitialized padding as manipulatable memory!
177-
[^2]: The "destructor" is different from the `Drop` trait. Calling the destructor is the process of calling a type's `Drop::drop` impl if it exists, and then calling the destructor for all of its fields (also known as "drop glue"). I.e. it's not _just_ `Drop`, but rather the entire _destruction_, of which the destructor is one part. Types that do not implement `Drop` may still have contentful destructors if their transitive fields do.
178-
177+
[^2]: The "destructor" is different from the `Drop` trait. Calling the destructor is the process of calling a type's `Drop::drop` impl if it exists, and then calling the destructor for all of its fields (also known as "drop glue"). I.e. it's not _just_ `Drop`, but rather the entire _destruction_, of which the `Drop` is one part. Types that do not implement `Drop` may still have contentful destructors if their transitive fields do.
178+

0 commit comments

Comments
 (0)