Skip to content

Commit a94b6dc

Browse files
committed
Rename 'owned to 'fd/'handle/'filelike/'socketlike.
1 parent 9d83018 commit a94b6dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-io-safety.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ introduction of some new types and traits and new impls for them. Initially,
132132
not all of the Rust ecosystem will support I/O safety though; adoption will
133133
be gradual.
134134

135-
## `OwnedFd` and `BorrowedFd<'owned>`
135+
## `OwnedFd` and `BorrowedFd<'fd>`
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
@@ -214,7 +214,7 @@ Functions accepting arbitrary raw I/O handle values ([`RawFd`], [`RawHandle`],
214214
or [`RawSocket`]) should be `unsafe` if they can lead to any I/O being
215215
performed on those handles through safe APIs.
216216

217-
## `OwnedFd` and `BorrowedFd<'owned>`
217+
## `OwnedFd` and `BorrowedFd<'fd>`
218218

219219
`OwnedFd` and `BorrowedFd` are both `repr(transparent)` with a `RawFd` value
220220
on the inside, and both can use niche optimizations so that `Option<OwnedFd>`

0 commit comments

Comments
 (0)