Skip to content

Commit b869555

Browse files
committed
doc: Simplify safety section ref doc of own_back<T>()
1 parent 244f2a3 commit b869555

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ pub unsafe fn free<T>(pointer: *mut T) {
6666
///
6767
/// # Safety
6868
///
69-
/// The pointer must be a valid reference and never call it twice or behavior is undefined.
70-
///
71-
/// That could produce a HEAP error that produce a crash.
69+
/// Invalid pointer or call it twice could cause an undefined behavior or heap error and a crash.
7270
#[doc(alias = "free")]
7371
#[cfg(any(feature = "alloc", feature = "std"))]
7472
#[inline]

0 commit comments

Comments
 (0)