Skip to content

Commit 9ce6a77

Browse files
authored
Quote identifiers in linked_list.rs
1 parent 752b2a1 commit 9ce6a77

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
@@ -864,7 +864,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
864864
/// assert_eq!(dl.front().unwrap(), &6);
865865
/// ```
866866
#[unstable(feature = "push_mut", issue = "135974")]
867-
#[must_use = "if you don't need a reference to the value, use LinkedList::push_front instead"]
867+
#[must_use = "if you don't need a reference to the value, use `LinkedList::push_front` instead"]
868868
pub fn push_front_mut(&mut self, elt: T) -> &mut T {
869869
let node = Box::new_in(Node::new(elt), &self.alloc);
870870
let mut node_ptr = NonNull::from(Box::leak(node));
@@ -936,7 +936,7 @@ impl<T, A: Allocator> LinkedList<T, A> {
936936
/// assert_eq!(dl.back().unwrap(), &6);
937937
/// ```
938938
#[unstable(feature = "push_mut", issue = "135974")]
939-
#[must_use = "if you don't need a reference to the value, use LinkedList::push_back instead"]
939+
#[must_use = "if you don't need a reference to the value, use `LinkedList::push_back` instead"]
940940
pub fn push_back_mut(&mut self, elt: T) -> &mut T {
941941
let node = Box::new_in(Node::new(elt), &self.alloc);
942942
let mut node_ptr = NonNull::from(Box::leak(node));

0 commit comments

Comments
 (0)