Skip to content

Commit 388ca67

Browse files
committed
1 parent 6c9f677 commit 388ca67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sorted_linked_list.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ where
755755
/// ll.push(3).unwrap();
756756
///
757757
/// // Find a value and update it
758-
/// let mut find = ll.as_mut_view().find_mut(|v| *v == 2).unwrap();
758+
/// let mut find = ll.find_mut(|v| *v == 2).unwrap();
759759
/// find.pop();
760760
///
761761
/// assert_eq!(ll.pop(), Some(3));
@@ -784,10 +784,10 @@ where
784784
/// ll.push(2).unwrap();
785785
/// ll.push(3).unwrap();
786786
///
787-
/// let mut find = ll.as_mut_view().find_mut(|v| *v == 2).unwrap();
787+
/// let mut find = ll.find_mut(|v| *v == 2).unwrap();
788788
/// find.finish(); // No resort, we did not access the value.
789789
///
790-
/// let mut find = ll.as_mut_view().find_mut(|v| *v == 2).unwrap();
790+
/// let mut find = ll.find_mut(|v| *v == 2).unwrap();
791791
/// *find += 1000;
792792
/// find.finish(); // Will resort, we accessed (and updated) the value.
793793
///

0 commit comments

Comments
 (0)