projects
/
rust-101.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
small spelling/grammar errors
[rust-101.git]
/
solutions
/
src
/
list.rs
diff --git
a/solutions/src/list.rs
b/solutions/src/list.rs
index 180627dcb6df7102484b2e79289937122a026f32..3206982e9de23650084d534107467474105dfad0 100644
(file)
--- a/
solutions/src/list.rs
+++ b/
solutions/src/list.rs
@@
-1,4
+1,3
@@
-
use std::ptr;
use std::mem;
use std::marker::PhantomData;
@@
-102,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 }
}
}