about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroverlookmotel <theoverlookmotel@gmail.com>2023-03-01 23:36:41 +0000
committeroverlookmotel <theoverlookmotel@gmail.com>2023-03-01 23:36:41 +0000
commit48e812687e25955d62b1fb5e19f2f2ae4e728710 (patch)
tree3697f47399cb7140c5d92d4bdc7c69fd51e8b8a6
parentf77bfb7336f21bfe6a5fb5f7358d4406e2597289 (diff)
downloadrust-48e812687e25955d62b1fb5e19f2f2ae4e728710.tar.gz
rust-48e812687e25955d62b1fb5e19f2f2ae4e728710.zip
Fix docs for `alloc::realloc`
Fixes #108546
-rw-r--r--library/core/src/alloc/global.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/alloc/global.rs b/library/core/src/alloc/global.rs
index 18da70451f2..c582111701a 100644
--- a/library/core/src/alloc/global.rs
+++ b/library/core/src/alloc/global.rs
@@ -235,7 +235,8 @@ pub unsafe trait GlobalAlloc {
     /// * `new_size` must be greater than zero.
     ///
     /// * `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
     /// behavior, e.g., guarantee a sentinel address or a null pointer