fix comment on Allocator trait
This commit is contained in:
parent
603270011e
commit
000cd9b5fb
@ -94,8 +94,9 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// * Memory blocks returned from an allocator must point to valid memory and retain their validity
|
/// * Memory blocks returned from an allocator that are [*currently allocated*] must point to
|
||||||
/// until the instance and all of its copies and clones are dropped,
|
/// valid memory and retain their validity while they are [*currently allocated*] and at
|
||||||
|
/// least one of the instance and all of its clones has not been dropped.
|
||||||
///
|
///
|
||||||
/// * copying, cloning, or moving the allocator must not invalidate memory blocks returned from this
|
/// * copying, cloning, or moving the allocator must not invalidate memory blocks returned from this
|
||||||
/// allocator. A copied or cloned allocator must behave like the same allocator, and
|
/// allocator. A copied or cloned allocator must behave like the same allocator, and
|
||||||
|
Loading…
Reference in New Issue
Block a user