Skip to content

Commit 7bb85f0

Browse files
joshlfRalfJung
andauthored
Update library/core/src/ptr/mod.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 7de470b commit 7bb85f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/ptr/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
//! a separate allocated object), and `static` variables.
6767
//!
6868
//! It is guaranteed that an allocated object never spans more than `isize::MAX` bytes.
69+
//! An allocated object can never contain the null address, and the address "at the end"
70+
//! (i.e., one past the last byte that is contained inside the allocated object) can always
71+
//! be computed without wrapping around the address space. (The last part is equivalent
72+
//! to saying that `usize::MAX` is never contained in an allocated object.)
6973
//!
7074
//! # Strict Provenance
7175
//!

0 commit comments

Comments
 (0)