Rollup merge of #73118 - alamb:alamb/doc-drop-typo, r=shepmaster

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.
This commit is contained in:
Dylan DPC 2020-06-08 22:15:15 +02:00 committed by GitHub
commit 6d9cf6e8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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