Skip to content

Commit

Permalink
Update based on rust-lang#116988 (the null address has the value 0)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlf committed Nov 4, 2023
1 parent ba5bfa7 commit cbe3738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/core/src/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@
//! a separate allocated object), and `static` variables.
//!
//! It is guaranteed that an allocated object never spans more than `isize::MAX` bytes.
//! An allocated object cannot contain [`null()`] and cannot contain the last (`usize::MAX`) byte
//! of the address space. As a consequence, any address which is either in the allocated object or
//! one byte past the last address in the allocated object can be computed without wrapping around
//! the address space.
//! An allocated object cannot contain [`null()`] (i.e., the address with the numerical value 0) and
//! cannot contain the last (`usize::MAX`) byte of the address space. As a consequence, any address
//! which is either in the allocated object or one byte past the last address in the allocated object
//! can be computed without wrapping around the address space.
//!
//! [`null()`]: null
//!
Expand Down

0 comments on commit cbe3738

Please sign in to comment.