Skip to content

Commit 9d83018

Browse files
committed
Clarify BorrowedFd's lifetime parameter.
1 parent ac872ec commit 9d83018

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-io-safety.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ be gradual.
136136

137137
These two types are conceptual replacements for `RawFd`, and represent owned
138138
and borrowed handle values. `OwnedFd` owns a file descriptor, including closing
139-
it when it's dropped. `BorrowedFd`'s lifetime parameter ties it to the lifetime
140-
of something that owns a file descriptor. These types enforce all of their I/O
141-
safety invariants automatically.
139+
it when it's dropped. `BorrowedFd`'s lifetime parameter says for how long
140+
access to this file descriptor has been borrowed. These types enforce all of
141+
their I/O safety invariants automatically.
142142

143143
For Windows, similar types, but in `Handle` and `Socket` forms.
144144

0 commit comments

Comments
 (0)