We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6b13a commit f502bf7Copy full SHA for f502bf7
src/libstd/primitive_docs.rs
@@ -363,8 +363,8 @@ mod prim_unit { }
363
/// *[See also the `std::ptr` module](ptr/index.html).*
364
///
365
/// Working with raw pointers in Rust is uncommon, typically limited to a few patterns.
366
-/// Raw pointers can be unaligned or null when unused. However, when a raw pointer is used to
367
-/// load/store data from/to memory, they must be non-null and aligned.
+/// Raw pointers can be unaligned or null when unused. However, when a raw pointer is
+/// dereferenced (using the `*` operator), it must be non-null and aligned.
368
/// Storing through a raw pointer (`*ptr = data`) calls `drop` on the old value, so
369
/// [`write`] must be used if memory is not already initialized.
370
0 commit comments