Skip to content

Commit 48e8126

Browse files
committed
Fix docs for alloc::realloc
Fixes #108546
1 parent f77bfb7 commit 48e8126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/alloc/global.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ pub unsafe trait GlobalAlloc {
235235
/// * `new_size` must be greater than zero.
236236
///
237237
/// * `new_size`, when rounded up to the nearest multiple of `layout.align()`,
238-
/// must not overflow (i.e., the rounded value must be less than `usize::MAX`).
238+
/// must not overflow isize (i.e., the rounded value must be less than or
239+
/// equal to `isize::MAX`).
239240
///
240241
/// (Extension subtraits might provide more specific bounds on
241242
/// behavior, e.g., guarantee a sentinel address or a null pointer

0 commit comments

Comments
 (0)