about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-10-13 00:12:19 +0800
committerRageking8 <tomleetyt@gmail.com>2022-10-13 00:53:46 +0800
commitd1982bd0af0ac3e9bc0b1e3bf596a1a5c84e60af (patch)
tree0ea5cee5b1a24c63436fd259e5bad2306e6b7fce /library/std/src
parent50f6d337c632cbb5bd1dc3a80b5d428cebd8dce4 (diff)
downloadrust-d1982bd0af0ac3e9bc0b1e3bf596a1a5c84e60af.tar.gz
rust-d1982bd0af0ac3e9bc0b1e3bf596a1a5c84e60af.zip
fix small word dupe typos
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/io/error/tests.rs2
-rw-r--r--library/std/src/sys/unix/kernel_copy.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/io/error/tests.rs b/library/std/src/io/error/tests.rs
index c897a5e8701..16c634e9afd 100644
--- a/library/std/src/io/error/tests.rs
+++ b/library/std/src/io/error/tests.rs
@@ -86,7 +86,7 @@ fn test_errorkind_packing() {
     assert_eq!(Error::from(ErrorKind::NotFound).kind(), ErrorKind::NotFound);
     assert_eq!(Error::from(ErrorKind::PermissionDenied).kind(), ErrorKind::PermissionDenied);
     assert_eq!(Error::from(ErrorKind::Uncategorized).kind(), ErrorKind::Uncategorized);
-    // Check that the innards look like like what we want.
+    // Check that the innards look like what we want.
     assert_matches!(
         Error::from(ErrorKind::OutOfMemory).repr.data(),
         ErrorData::Simple(ErrorKind::OutOfMemory),
diff --git a/library/std/src/sys/unix/kernel_copy.rs b/library/std/src/sys/unix/kernel_copy.rs
index 8f7abb55e23..94546ca09d0 100644
--- a/library/std/src/sys/unix/kernel_copy.rs
+++ b/library/std/src/sys/unix/kernel_copy.rs
@@ -20,7 +20,7 @@
 //! Since those syscalls have requirements that cannot be fully checked in advance and
 //! gathering additional information about file descriptors would require additional syscalls
 //! anyway it simply attempts to use them one after another (guided by inaccurate hints) to
-//! figure out which one works and and falls back to the generic read-write copy loop if none of them
+//! figure out which one works and falls back to the generic read-write copy loop if none of them
 //! does.
 //! Once a working syscall is found for a pair of file descriptors it will be called in a loop
 //! until the copy operation is completed.