Skip to content

Commit 6d9cf6e

Browse files
authored
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.
2 parents 845b869 + 7b0906b commit 6d9cf6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub fn replace<T>(dest: &mut T, mut src: T) -> T {
808808

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

0 commit comments

Comments
 (0)