Skip to content

Commit 158ff5c

Browse files
committed
Reword the question in the section header too.
This adopts the wording suggested in rust-lang#97837 (comment).
1 parent e89ec68 commit 158ff5c

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/os/unix/io

1 file changed

+2
-2
lines changed

library/std/src/os/unix/io/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
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

0 commit comments

Comments
 (0)