Fix docs for alloc::realloc

Fixes #108546
This commit is contained in:
overlookmotel 2023-03-01 23:36:41 +00:00
parent f77bfb7336
commit 48e812687e

View File

@ -235,7 +235,8 @@ unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
/// * `new_size` must be greater than zero. /// * `new_size` must be greater than zero.
/// ///
/// * `new_size`, when rounded up to the nearest multiple of `layout.align()`, /// * `new_size`, when rounded up to the nearest multiple of `layout.align()`,
/// must not overflow (i.e., the rounded value must be less than `usize::MAX`). /// must not overflow isize (i.e., the rounded value must be less than or
/// equal to `isize::MAX`).
/// ///
/// (Extension subtraits might provide more specific bounds on /// (Extension subtraits might provide more specific bounds on
/// behavior, e.g., guarantee a sentinel address or a null pointer /// behavior, e.g., guarantee a sentinel address or a null pointer