heading # Unsafety => # Safety in stdlib docs.

This commit is contained in:
Mazdak Farrokhzad
2019-02-25 08:01:35 +01:00
parent c1911babed
commit 4ca865e929
3 changed files with 7 additions and 7 deletions

View File

@@ -420,7 +420,7 @@ impl fmt::Display for CannotReallocInPlace {
/// }
/// ```
///
/// # Unsafety
/// # Safety
///
/// The `GlobalAlloc` trait is an `unsafe` trait for a number of reasons, and
/// implementors must ensure that they adhere to these contracts:
@@ -643,7 +643,7 @@ pub unsafe trait GlobalAlloc {
/// currently allocated via an allocator `a`, then it is legal to
/// use that layout to deallocate it, i.e., `a.dealloc(ptr, k);`.
///
/// # Unsafety
/// # Safety
///
/// The `Alloc` trait is an `unsafe` trait for a number of reasons, and
/// implementors must ensure that they adhere to these contracts: