File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 243
243
//! Rust follows an [I/O safety] discipline that is comparable to its memory safety discipline. This
244
244
//! means that file descriptors can be *exclusively owned*. (Here, "file descriptor" is meant to
245
245
//! subsume similar concepts that exist across a wide range of operating systems even if they might
246
- //! use a different name, such as "handle".) An exclusivley owned file descriptor is one that no
246
+ //! use a different name, such as "handle".) An exclusively owned file descriptor is one that no
247
247
//! other code is allowed to close, but the owner is allowed to close it any time. A type that owns
248
248
//! its file descriptor should close it in its `drop` function. Types like [`File`] generally own
249
249
//! their file descriptor. Similarly, file descriptors can be *borrowed*. This indicates that the
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub struct BorrowedFd<'fd> {
43
43
44
44
/// An owned file descriptor.
45
45
///
46
- /// This closes the file descriptor on drop. It is guarantees that nobody else will close the file
46
+ /// This closes the file descriptor on drop. It is guaranteed that nobody else will close the file
47
47
/// descriptor.
48
48
///
49
49
/// This uses `repr(transparent)` and has the representation of a host file
You can’t perform that action at this time.
0 commit comments