Skip to content

Commit efc738d

Browse files
author
balt-dev
committed
More documentation consistency fixes
1 parent d24527d commit efc738d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/collections/linked_list.rs

Lines changed: 2 additions & 2 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 first in the list.
828+
/// Adds an element to the front of a 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 first in the list, returning a reference to it.
850+
/// Adds an element to the front of a list, returning a reference to it.
851851
///
852852
/// This operation should compute in *O*(1) time.
853853
///

0 commit comments

Comments
 (0)