Skip to content

Commit a51b5f8

Browse files
committed
fix doc for pointer's validity in zst operation
1 parent 8cdc67e commit a51b5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ptr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! The precise rules for validity are not determined yet. The guarantees that are
1616
//! provided at this point are very minimal:
1717
//!
18-
//! * For operations of [size zero][zst], *every* pointer is valid, including the [null] pointer.
18+
//! * For operations of [size zero][zst], *every* pointer is valid, except the [null] pointer.
1919
//! The following points are only concerned with non-zero-sized accesses.
2020
//! * A [null] pointer is *never* valid.
2121
//! * For a pointer to be valid, it is necessary, but not always sufficient, that the pointer be

0 commit comments

Comments
 (0)