Merge pull request #21 from avkrotov/implemenets
[rust-101.git] / solutions / src / list.rs
index 5137555af65eb4ea3797c29e069382631a2606ab..3206982e9de23650084d534107467474105dfad0 100644 (file)
@@ -101,7 +101,7 @@ impl<T> LinkedList<T> {
         }
     }
 
-    pub fn iter_mut(&self) -> IterMut<T> {
+    pub fn iter_mut(&mut self) -> IterMut<T> {
         IterMut { next: self.first, _marker: PhantomData  }
     }
 }