Skip to content

Commit c02964f

Browse files
Rollup merge of #138703 - pudongair:master, r=workingjubilee
chore: remove redundant words in comment remove redundant words in comment
2 parents 3350c1e + cf26d82 commit c02964f

File tree

2 files changed

+3
-3
lines changed
  • compiler/rustc_error_codes/src/error_codes
  • library/core/src/macros

2 files changed

+3
-3
lines changed

compiler/rustc_error_codes/src/error_codes/E0207.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl<'a> Contains for Foo {
195195
Please note that unconstrained lifetime parameters are not supported if they are
196196
being used by an associated type.
197197

198-
In cases where the associated type's lifetime is meant to be tied to the the
198+
In cases where the associated type's lifetime is meant to be tied to the
199199
self type, and none of the methods on the trait need ownership or different
200200
mutability, then an option is to implement the trait on a borrowed type:
201201

library/core/src/macros/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1748,8 +1748,8 @@ pub(crate) mod builtin {
17481748
/* compiler built-in */
17491749
}
17501750

1751-
/// Provide a list of type aliases and other opaque-type-containing type definitions.
1752-
/// This list will be used in the body of the item it is applied to define opaque
1751+
/// Provide a list of type aliases and other opaque-type-containing type definitions
1752+
/// to an item with a body. This list will be used in that body to define opaque
17531753
/// types' hidden types.
17541754
/// Can only be applied to things that have bodies.
17551755
#[unstable(

0 commit comments

Comments
 (0)