Skip to content

Commit

Permalink
Rollup merge of #73118 - alamb:alamb/doc-drop-typo, r=shepmaster
Browse files Browse the repository at this point in the history
Improve the wording in documentation of std::mem::drop

I thought the original phrasing was somewhat awkward compared to rest of the (very well written) documentation, so figured I would propose a change to improve it.
  • Loading branch information
Dylan-DPC committed Jun 8, 2020
2 parents 845b869 + 7b0906b commit 6d9cf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {

/// Disposes of a value.
///
/// This does call the argument's implementation of [`Drop`][drop].
/// This does so by calling the argument's implementation of [`Drop`][drop].
///
/// This effectively does nothing for types which implement `Copy`, e.g.
/// integers. Such values are copied and _then_ moved into the function, so the
Expand Down

0 comments on commit 6d9cf6e

Please sign in to comment.