Skip to content

Commit d24527d

Browse files
author
balt-dev
committed
Documentation consistency fixes
1 parent 5b1a046 commit d24527d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library/alloc/src/collections/linked_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
899899
self.pop_front_node().map(Node::into_element)
900900
}
901901

902-
/// Appends an element to the back of a list.
902+
/// Adds an element to the back of a list.
903903
///
904904
/// This operation should compute in *O*(1) time.
905905
///

library/alloc/src/vec/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,8 @@ impl<T, A: Allocator> Vec<T, A> {
20502050
}
20512051

20522052
/// Inserts an element at position `index` within the vector, shifting all
2053-
/// elements after it to the right.
2053+
/// elements after it to the right, and returning a reference to the new
2054+
/// element.
20542055
///
20552056
/// # Panics
20562057
///

0 commit comments

Comments
 (0)