Skip to content

Commit 10866f4

Browse files
committed
Fix typo in std::vec
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
1 parent 0d11be5 commit 10866f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3695,7 +3695,7 @@ impl<T, A: Allocator> Vec<T, A> {
36953695
/// This is optimal if:
36963696
///
36973697
/// * The tail (elements in the vector after `range`) is empty,
3698-
/// * or `replace_with` yields fewer or equal elements than `range`s length
3698+
/// * or `replace_with` yields fewer or equal elements than `range`'s length
36993699
/// * or the lower bound of its `size_hint()` is exact.
37003700
///
37013701
/// Otherwise, a temporary vector is allocated and the tail is moved twice.

0 commit comments

Comments
 (0)