diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2022-06-08 08:27:32 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2022-06-08 08:28:36 -0700 |
| commit | 158ff5cdd47b72d4ef9f04c4a3145c0b74bdba25 (patch) | |
| tree | e69bb9137eff408c4a13373f3ed2362d8582e1b8 /library/std/src | |
| parent | e89ec68d5db9aa58b8170b351e730d45304c812b (diff) | |
| download | rust-158ff5cdd47b72d4ef9f04c4a3145c0b74bdba25.tar.gz rust-158ff5cdd47b72d4ef9f04c4a3145c0b74bdba25.zip | |
Reword the question in the section header too.
This adopts the wording suggested in https://github.com/rust-lang/rust/pull/97837#discussion_r892524129.
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/os/unix/io/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/os/unix/io/mod.rs b/library/std/src/os/unix/io/mod.rs index 0a9c95fd409..044cfb221b2 100644 --- a/library/std/src/os/unix/io/mod.rs +++ b/library/std/src/os/unix/io/mod.rs @@ -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 |
