diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index d2422cc1e400..c77a6e323c88 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -243,7 +243,7 @@ //! Rust follows an [I/O safety] discipline that is comparable to its memory safety discipline. This //! means that file descriptors can be *exclusively owned*. (Here, "file descriptor" is meant to //! subsume similar concepts that exist across a wide range of operating systems even if they might -//! use a different name, such as "handle".) An exclusivley owned file descriptor is one that no +//! use a different name, such as "handle".) An exclusively owned file descriptor is one that no //! other code is allowed to close, but the owner is allowed to close it any time. A type that owns //! its file descriptor should close it in its `drop` function. Types like [`File`] generally own //! their file descriptor. Similarly, file descriptors can be *borrowed*. This indicates that the diff --git a/library/std/src/os/fd/owned.rs b/library/std/src/os/fd/owned.rs index 7861f1a3dfa7..81106d6c62c3 100644 --- a/library/std/src/os/fd/owned.rs +++ b/library/std/src/os/fd/owned.rs @@ -43,7 +43,7 @@ pub struct BorrowedFd<'fd> { /// An owned file descriptor. /// -/// This closes the file descriptor on drop. It is guarantees that nobody else will close the file +/// This closes the file descriptor on drop. It is guaranteed that nobody else will close the file /// descriptor. /// /// This uses `repr(transparent)` and has the representation of a host file