Skip to content

Commit 334a54c

Browse files
committed
typos
1 parent b2b225e commit 334a54c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
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

library/std/src/os/fd/owned.rs

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)