Skip to content

Commit 1b35f74

Browse files
committed
Reword the description of dup2/dup3.
1 parent 6d72117 commit 1b35f74

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! - `close`, because that would end the dynamic lifetime of the resource
2929
//! without ending the lifetime of the file descriptor.
3030
//! - `dup2`/`dup3`, in the second argument, because this argument is
31-
//! closed and replaced with a new resource, which may break the assumptions
31+
//! closed and assigned a new resource, which may break the assumptions
3232
//! other code using that file descriptor.
3333
//! This list doesn't include `mmap`, since `mmap` does do a proper borrow of
3434
//! its file descriptor argument. That said, `mmap` is unsafe for other

0 commit comments

Comments
 (0)