Skip to content

Commit 64ecfe4

Browse files
committed
chore: remove redundant words in comment
Signed-off-by: pudongair <744355276@qq.com>
1 parent b8b3b41 commit 64ecfe4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub unsafe trait CloneToUninit {
427427
/// read or dropped, because even if it was previously valid, it may have been partially
428428
/// overwritten.
429429
///
430-
/// The caller may wish to to take care to deallocate the allocation pointed to by `dest`,
430+
/// The caller may wish to take care to deallocate the allocation pointed to by `dest`,
431431
/// if applicable, to avoid a memory leak (but this is not a requirement).
432432
///
433433
/// Implementors should avoid leaking values by, upon unwinding, dropping all component values

core/src/macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,8 +1743,8 @@ pub(crate) mod builtin {
17431743
/* compiler built-in */
17441744
}
17451745

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

0 commit comments

Comments
 (0)