We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 511fdb5 commit 79a466cCopy full SHA for 79a466c
text/0000-manually-drop.md
@@ -112,8 +112,8 @@ impl Drop for FruitBox {
112
// Explicit ordering in which field destructors are run specified in the intuitive
113
// location – the destructor of the structure containing the fields.
114
// Moreover, one can now reorder fields within the struct however much they want.
115
- peach.manually_drop();
116
- banana.manually_drop();
+ peach.drop();
+ banana.drop();
117
}
118
// After destructor for `FruitBox` runs (this function), the destructor for Melon gets
119
// invoked in the usual manner, as it is not wrapped in `ManuallyDrop`.
0 commit comments