about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorhattizai <hattizai@gmail.com>2024-07-02 11:25:31 +0800
committerhattizai <hattizai@gmail.com>2024-07-02 11:25:31 +0800
commitada9fda7c38b1be39b4e8273ee6af150985df064 (patch)
tree33b961ea91ffae5597fb7380990546a9d3b196ed /library/std/src/sys
parentc3774be7411722d3695de2ab1da9a358d0d5c82c (diff)
downloadrust-ada9fda7c38b1be39b4e8273ee6af150985df064.tar.gz
rust-ada9fda7c38b1be39b4e8273ee6af150985df064.zip
chore: remove duplicate words
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/pal/unix/args.rs2
-rw-r--r--library/std/src/sys/pal/windows/alloc.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/pal/unix/args.rs b/library/std/src/sys/pal/unix/args.rs
index db2ec73148e..e2ec838b740 100644
--- a/library/std/src/sys/pal/unix/args.rs
+++ b/library/std/src/sys/pal/unix/args.rs
@@ -183,7 +183,7 @@ mod imp {
 // Use `_NSGetArgc` and `_NSGetArgv` on Apple platforms.
 //
 // Even though these have underscores in their names, they've been available
-// since since the first versions of both macOS and iOS, and are declared in
+// since the first versions of both macOS and iOS, and are declared in
 // the header `crt_externs.h`.
 //
 // NOTE: This header was added to the iOS 13.0 SDK, which has been the source
diff --git a/library/std/src/sys/pal/windows/alloc.rs b/library/std/src/sys/pal/windows/alloc.rs
index 681d1a5efe9..24c237b5eb0 100644
--- a/library/std/src/sys/pal/windows/alloc.rs
+++ b/library/std/src/sys/pal/windows/alloc.rs
@@ -190,7 +190,7 @@ unsafe fn allocate(layout: Layout, zeroed: bool) -> *mut u8 {
         // it, it is safe to write a header directly before it.
         unsafe { ptr::write((aligned as *mut Header).sub(1), Header(ptr)) };
 
-        // SAFETY: The returned pointer does not point to the to the start of an allocated block,
+        // SAFETY: The returned pointer does not point to the start of an allocated block,
         // but there is a header readable directly before it containing the location of the start
         // of the block.
         aligned