We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e165d9 commit c8da321Copy full SHA for c8da321
src/libcore/ptr.rs
@@ -42,10 +42,9 @@
42
//!
43
//! * The result of casting a reference to a pointer is valid for as long as the
44
//! underlying object is live.
45
-//! * All pointers to types with a [size of zero][zst] are valid for all
46
-//! operations of size zero.
47
-//! * A [null] pointer is *never* valid, except when it points to a zero-sized
48
-//! type.
+//! * A [null] pointer is *never* valid.
+//! * All pointers (except for the null pointer) are valid for all operations of
+//! [size zero][zst].
49
50
//! These axioms, along with careful use of [`offset`] for pointer arithmentic,
51
//! are enough to correctly implement many useful things in unsafe code. Still,
0 commit comments