diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2021-07-27 17:32:04 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2021-08-19 12:02:40 -0700 |
| commit | 1b35f7405ae2045d02c4739020d11c1480a8e01a (patch) | |
| tree | 24f87bd313e5475326298e727134992c4c7beceb /library/std/src/os/unix/io/mod.rs | |
| parent | 6d7211738d74436a5d36ca68948d86f4809b9001 (diff) | |
| download | rust-1b35f7405ae2045d02c4739020d11c1480a8e01a.tar.gz rust-1b35f7405ae2045d02c4739020d11c1480a8e01a.zip | |
Reword the description of dup2/dup3.
Diffstat (limited to 'library/std/src/os/unix/io/mod.rs')
| -rw-r--r-- | library/std/src/os/unix/io/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/os/unix/io/mod.rs b/library/std/src/os/unix/io/mod.rs index fd1394a0520..5a7682b5079 100644 --- a/library/std/src/os/unix/io/mod.rs +++ b/library/std/src/os/unix/io/mod.rs @@ -28,7 +28,7 @@ //! - `close`, because that would end the dynamic lifetime of the resource //! without ending the lifetime of the file descriptor. //! - `dup2`/`dup3`, in the second argument, because this argument is -//! closed and replaced with a new resource, which may break the assumptions +//! closed and assigned a new resource, which may break the assumptions //! other code using that file descriptor. //! This list doesn't include `mmap`, since `mmap` does do a proper borrow of //! its file descriptor argument. That said, `mmap` is unsafe for other |
