Skip to content

Commit ba5bfa7

Browse files
authored
Update mod.rs
1 parent 87ef2e9 commit ba5bfa7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

library/core/src/ptr/mod.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@
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 cannot contain the last (`usize::MAX`) byte of the address space.
70-
//! As a consequence, any address which is either in the allocated object or one byte past
71-
//! the last address in the allocated object can be computed without wrapping around the
72-
//! address space.
69+
//! An allocated object cannot contain [`null()`] and cannot contain the last (`usize::MAX`) byte
70+
//! of the address space. As a consequence, any address which is either in the allocated object or
71+
//! one byte past the last address in the allocated object can be computed without wrapping around
72+
//! the address space.
73+
//!
74+
//! [`null()`]: null
7375
//!
7476
//! # Strict Provenance
7577
//!

0 commit comments

Comments
 (0)