Skip to content

Commit 824d75c

Browse files
committed
remove repetitive words
Signed-off-by: cui fliter <imcusg@gmail.com>
1 parent dda102c commit 824d75c

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ pub fn create_compressed_metadata_file_for_xcoff(
623623
/// that contains a custom section of the name `section_name` with contents
624624
/// `data`.
625625
///
626-
/// NB: the `object` crate does not yet have support for writing the the wasm
626+
/// NB: the `object` crate does not yet have support for writing the wasm
627627
/// object file format. The format is simple enough that for now an extra crate
628628
/// from crates.io (such as `wasm-encoder`). The file format is:
629629
///

compiler/rustc_middle/src/traits/select.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub enum SelectionCandidate<'tcx> {
139139
/// generated for an `async ||` expression.
140140
AsyncClosureCandidate,
141141

142-
/// Implementation of the the `AsyncFnKindHelper` helper trait, which
142+
/// Implementation of the `AsyncFnKindHelper` helper trait, which
143143
/// is used internally to delay computation for async closures until after
144144
/// upvar analysis is performed in HIR typeck.
145145
AsyncFnKindHelperCandidate,

library/alloc/src/collections/btree/map.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,7 @@ impl<'a, K, V> Cursor<'a, K, V> {
29162916
}
29172917
}
29182918

2919-
/// Returns a reference to the the key and value of the next element without
2919+
/// Returns a reference to the key and value of the next element without
29202920
/// moving the cursor.
29212921
///
29222922
/// If the cursor is at the end of the map then `None` is returned
@@ -2925,7 +2925,7 @@ impl<'a, K, V> Cursor<'a, K, V> {
29252925
self.clone().next()
29262926
}
29272927

2928-
/// Returns a reference to the the key and value of the previous element
2928+
/// Returns a reference to the key and value of the previous element
29292929
/// without moving the cursor.
29302930
///
29312931
/// If the cursor is at the start of the map then `None` is returned.
@@ -2958,7 +2958,7 @@ impl<'a, K, V, A> CursorMut<'a, K, V, A> {
29582958
Some((&*k, v))
29592959
}
29602960

2961-
/// Returns a reference to the the key and value of the next element without
2961+
/// Returns a reference to the key and value of the next element without
29622962
/// moving the cursor.
29632963
///
29642964
/// If the cursor is at the end of the map then `None` is returned
@@ -2968,7 +2968,7 @@ impl<'a, K, V, A> CursorMut<'a, K, V, A> {
29682968
Some((&*k, v))
29692969
}
29702970

2971-
/// Returns a reference to the the key and value of the previous element
2971+
/// Returns a reference to the key and value of the previous element
29722972
/// without moving the cursor.
29732973
///
29742974
/// If the cursor is at the start of the map then `None` is returned.
@@ -3056,7 +3056,7 @@ impl<'a, K, V, A> CursorMutKey<'a, K, V, A> {
30563056
}
30573057
}
30583058

3059-
/// Returns a reference to the the key and value of the next element without
3059+
/// Returns a reference to the key and value of the next element without
30603060
/// moving the cursor.
30613061
///
30623062
/// If the cursor is at the end of the map then `None` is returned
@@ -3068,7 +3068,7 @@ impl<'a, K, V, A> CursorMutKey<'a, K, V, A> {
30683068
Some(kv)
30693069
}
30703070

3071-
/// Returns a reference to the the key and value of the previous element
3071+
/// Returns a reference to the key and value of the previous element
30723072
/// without moving the cursor.
30733073
///
30743074
/// If the cursor is at the start of the map then `None` is returned.

src/bootstrap/src/core/config/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ impl Config {
23992399
.last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true)
24002400
.is_none()
24012401
{
2402-
// there are some untracked changes in the the given paths.
2402+
// there are some untracked changes in the given paths.
24032403
false
24042404
} else {
24052405
llvm::is_ci_llvm_available(self, asserts)

src/doc/rustdoc/src/write-documentation/linking-to-items-by-name.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,5 @@ render differently in this case:
167167
[f]: g
168168
```
169169

170-
`1.` and `2.` will will be displayed as is in the rendered documentation (ie, `[a]` and `[b][c]`)
170+
`1.` and `2.` will be displayed as is in the rendered documentation (ie, `[a]` and `[b][c]`)
171171
whereas `3.` and `4.` will be replaced by a link targetting `e` for `[d](e)` and `g` for `[f]`.

0 commit comments

Comments
 (0)