Skip to content

Commit 1876c7e

Browse files
committed
Add free as a doc alias for drop
1 parent 1c158b6 commit 1876c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ pub const fn replace<T>(dest: &mut T, src: T) -> T {
886886
/// ```
887887
///
888888
/// [`RefCell`]: crate::cell::RefCell
889-
#[doc(alias = "delete")]
889+
#[doc(alias("delete", "free"))]
890890
#[inline]
891891
#[stable(feature = "rust1", since = "1.0.0")]
892892
pub fn drop<T>(_x: T) {}

0 commit comments

Comments
 (0)