File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/std/src/os/unix/io Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4444//! Like boxes, `OwnedFd` values conceptually own the resource they point to,
4545//! and free (close) it when they are dropped.
4646//!
47- //! ## What about `/proc/self/mem` and similar OS features?
47+ //! ## `/proc/self/mem` and similar OS features
4848//!
4949//! Some platforms have special files, such as `/proc/self/mem`, which
5050//! provide read and write access to the process's memory. Such reads
5151//! and writes happen outside the control of the Rust compiler, so they do not
5252//! uphold Rust's memory safety guarantees.
5353//!
54- //! However, this does not mean that all APIs that might allow `/proc/self/mem`
54+ //! This does not mean that all APIs that might allow `/proc/self/mem`
5555//! to be opened and read from or written must be `unsafe`. Rust's safety guarantees
5656//! only cover what the program itself can do, and not what entities outside
5757//! the program can do to it. `/proc/self/mem` is considered to be such an
You can’t perform that action at this time.
0 commit comments