Skip to content

Commit

Permalink
Reword the question in the section header too.
Browse files Browse the repository at this point in the history
This adopts the wording suggested in
rust-lang/rust#97837 (comment).
  • Loading branch information
sunfishcode committed Jun 8, 2022
1 parent 92a757f commit e61234e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/src/os/unix/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
//! Like boxes, `OwnedFd` values conceptually own the resource they point to,
//! and free (close) it when they are dropped.
//!
//! ## What about `/proc/self/mem` and similar OS features?
//! ## `/proc/self/mem` and similar OS features
//!
//! Some platforms have special files, such as `/proc/self/mem`, which
//! provide read and write access to the process's memory. Such reads
//! and writes happen outside the control of the Rust compiler, so they do not
//! uphold Rust's memory safety guarantees.
//!
//! However, this does not mean that all APIs that might allow `/proc/self/mem`
//! This does not mean that all APIs that might allow `/proc/self/mem`
//! to be opened and read from or written must be `unsafe`. Rust's safety guarantees
//! only cover what the program itself can do, and not what entities outside
//! the program can do to it. `/proc/self/mem` is considered to be such an
Expand Down

0 comments on commit e61234e

Please sign in to comment.