Skip to content

Commit c953b84

Browse files
author
balt-dev
committed
Make wording in documentation for LinkedList::push_front_mut, etc. consistent with VecDeque and Vec
1 parent efc738d commit c953b84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/alloc/src/collections/linked_list.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
825825
unsafe { self.tail.as_mut().map(|node| &mut node.as_mut().element) }
826826
}
827827

828-
/// Adds an element to the front of a list.
828+
/// Adds an element to the front of the list.
829829
///
830830
/// This operation should compute in *O*(1) time.
831831
///
@@ -847,7 +847,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
847847
let _ = self.push_front_mut(elt);
848848
}
849849

850-
/// Adds an element to the front of a list, returning a reference to it.
850+
/// Adds an element to the front of the list, returning a reference to it.
851851
///
852852
/// This operation should compute in *O*(1) time.
853853
///
@@ -899,7 +899,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
899899
self.pop_front_node().map(Node::into_element)
900900
}
901901

902-
/// Adds an element to the back of a list.
902+
/// Adds an element to the back of the list.
903903
///
904904
/// This operation should compute in *O*(1) time.
905905
///
@@ -919,7 +919,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
919919
let _ = self.push_back_mut(elt);
920920
}
921921

922-
/// Adds an element to the back of a list, returning a reference to it.
922+
/// Adds an element to the back of the list, returning a reference to it.
923923
///
924924
/// This operation should compute in *O*(1) time.
925925
///

0 commit comments

Comments
 (0)