about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-08 22:15:15 +0200
committerGitHub <noreply@github.com>2020-06-08 22:15:15 +0200
commit6d9cf6e8b75fa807e07395cec79b5a1c335c70c0 (patch)
treef456961db2f46e09b6d7f9be4b64e5ce754bd5df
parent845b86905012db4e1946238cdbfc0ee02a5ca122 (diff)
parent7b0906b2e96fee11544c55ee56228bab782f1401 (diff)
downloadrust-6d9cf6e8b75fa807e07395cec79b5a1c335c70c0.tar.gz
rust-6d9cf6e8b75fa807e07395cec79b5a1c335c70c0.zip
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.
-rw-r--r--src/libcore/mem/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs
index 010f2958e36..d1f5cb44913 100644
--- a/src/libcore/mem/mod.rs
+++ b/src/libcore/mem/mod.rs
@@ -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