Skip to content

Commit bdf71c3

Browse files
committed
doc: Add alias free to own_back to show in reference doc search
1 parent b931e37 commit bdf71c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub unsafe fn free<T>(pointer: *mut T) {
6262
/// The pointer must be a valid reference and never call it twice or behavior is undefined.
6363
///
6464
/// That could produce a HEAP error that produce a crash.
65+
#[doc(alias = "free")]
6566
#[cfg(any(feature = "alloc", feature = "std"))]
6667
#[inline]
6768
pub unsafe fn own_back<T>(pointer: *mut T) -> T {

0 commit comments

Comments
 (0)