Reword the description of dup2/dup3.

This commit is contained in:
Dan Gohman 2021-07-27 17:32:04 -07:00
parent 6d7211738d
commit 1b35f7405a

View File

@ -28,7 +28,7 @@
//! - `close`, because that would end the dynamic lifetime of the resource //! - `close`, because that would end the dynamic lifetime of the resource
//! without ending the lifetime of the file descriptor. //! without ending the lifetime of the file descriptor.
//! - `dup2`/`dup3`, in the second argument, because this argument is //! - `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. //! other code using that file descriptor.
//! This list doesn't include `mmap`, since `mmap` does do a proper borrow of //! 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 //! its file descriptor argument. That said, `mmap` is unsafe for other