File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -2056,10 +2056,8 @@ pub const unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
2056
2056
/// irrelevant, and it can be created with [`without_provenance`]. The access must not trap. It
2057
2057
/// can cause side-effects, but those must not affect Rust-allocated memory in in any way. This
2058
2058
/// access is still not considered [atomic], and as such it cannot be used for inter-thread
2059
- /// synchronization.
2060
- ///
2061
- /// Note that volatile memory operations on zero-sized types (e.g., if a zero-sized type is passed
2062
- /// to `read_volatile`) are noops and may be ignored.
2059
+ /// synchronization. Note that volatile memory operations where T is a zero-sized type are noops
2060
+ /// and may be ignored.
2063
2061
///
2064
2062
/// [c11]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
2065
2063
/// [allocation]: crate::ptr#allocated-object
You can’t perform that action at this time.
0 commit comments