about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-08-14 08:50:32 +0200
committerRalf Jung <post@ralfj.de>2023-08-14 08:50:32 +0200
commit334a54cd83191f38ad8046ed94c45de735c86c65 (patch)
treefb3273739eb7e42cfb0403774c79c8d7a2951a2c
parentb2b225e1d1e2bcdd2fabd8765b228b3480f3a998 (diff)
downloadrust-334a54cd83191f38ad8046ed94c45de735c86c65.tar.gz
rust-334a54cd83191f38ad8046ed94c45de735c86c65.zip
typos
-rw-r--r--library/std/src/io/mod.rs2
-rw-r--r--library/std/src/os/fd/owned.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index d2422cc1e40..c77a6e323c8 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 7861f1a3dfa..81106d6c62c 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