chore: remove redundant words in comment

Signed-off-by: pudongair <744355276@qq.com>
This commit is contained in:
pudongair
2025-03-26 15:28:51 +08:00
parent 6e8abb5ec6
commit cf26d82daf
3 changed files with 4 additions and 4 deletions
@@ -195,7 +195,7 @@ impl<'a> Contains for Foo {
Please note that unconstrained lifetime parameters are not supported if they are
being used by an associated type.
In cases where the associated type's lifetime is meant to be tied to the the
In cases where the associated type's lifetime is meant to be tied to the
self type, and none of the methods on the trait need ownership or different
mutability, then an option is to implement the trait on a borrowed type:
+1 -1
View File
@@ -427,7 +427,7 @@ pub unsafe trait CloneToUninit {
/// read or dropped, because even if it was previously valid, it may have been partially
/// overwritten.
///
/// The caller may wish to to take care to deallocate the allocation pointed to by `dest`,
/// The caller may wish to take care to deallocate the allocation pointed to by `dest`,
/// if applicable, to avoid a memory leak (but this is not a requirement).
///
/// Implementors should avoid leaking values by, upon unwinding, dropping all component values
+2 -2
View File
@@ -1743,8 +1743,8 @@ macro_rules! trace_macros {
/* compiler built-in */
}
/// Provide a list of type aliases and other opaque-type-containing type definitions.
/// This list will be used in the body of the item it is applied to define opaque
/// Provide a list of type aliases and other opaque-type-containing type definitions
/// to an item with a body. This list will be used in that body to define opaque
/// types' hidden types.
/// Can only be applied to things that have bodies.
#[unstable(