We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
alloc::realloc
1 parent f77bfb7 commit 48e8126Copy full SHA for 48e8126
library/core/src/alloc/global.rs
@@ -235,7 +235,8 @@ pub unsafe trait GlobalAlloc {
235
/// * `new_size` must be greater than zero.
236
///
237
/// * `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`).
+ /// must not overflow isize (i.e., the rounded value must be less than or
239
+ /// equal to `isize::MAX`).
240
241
/// (Extension subtraits might provide more specific bounds on
242
/// behavior, e.g., guarantee a sentinel address or a null pointer
0 commit comments