This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 243243//! Rust follows an [I/O safety] discipline that is comparable to its memory safety discipline. This
244244//! means that file descriptors can be *exclusively owned*. (Here, "file descriptor" is meant to
245245//! 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
247247//! other code is allowed to close, but the owner is allowed to close it any time. A type that owns
248248//! its file descriptor should close it in its `drop` function. Types like [`File`] generally own
249249//! 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> {
4343
4444/// An owned file descriptor.
4545///
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
4747/// descriptor.
4848///
4949/// This uses `repr(transparent)` and has the representation of a host file
You can’t perform that action at this time.
0 commit comments