File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,8 @@ use marker::Unsize;
157
157
/// its `drop` method called. Then any fields the value contains will also
158
158
/// be dropped recursively.
159
159
///
160
- /// Because of the recursive dropping, even for types that do not implement
161
- /// this trait, you do not need to implement this trait unless your type
162
- /// needs its own destructor logic.
160
+ /// Because of the recursive dropping, you do not need to implement this trait
161
+ /// unless your type needs its own destructor logic.
163
162
///
164
163
/// # Examples
165
164
///
@@ -181,9 +180,8 @@ use marker::Unsize;
181
180
/// ```
182
181
///
183
182
/// Showing the recursive nature of `Drop`. When `outer` goes out of scope, the
184
- /// `drop` method will be called for `Outer` and then the `drop` method for
185
- /// `Inner` will be called. Therefore `main` prints `Dropping Outer!` and then
186
- /// `Dropping Inner!`.
183
+ /// `drop` method will be called first for `Outer`, then for `Inner`. Therefore
184
+ /// `main` prints `Dropping Outer!` and then `Dropping Inner!`.
187
185
///
188
186
/// ```
189
187
/// struct Inner;
You can’t perform that action at this time.
0 commit comments