Skip to content

Commit b41b294

Browse files
committed
Suggested changes by birkenfeld
1 parent 5f4b0ff commit b41b294

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/libcore/ops.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ use marker::Unsize;
157157
/// its `drop` method called. Then any fields the value contains will also
158158
/// be dropped recursively.
159159
///
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.
163162
///
164163
/// # Examples
165164
///
@@ -181,9 +180,8 @@ use marker::Unsize;
181180
/// ```
182181
///
183182
/// 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!`.
187185
///
188186
/// ```
189187
/// struct Inner;

0 commit comments

Comments
 (0)