diff --git a/exercises/practice/simple-linked-list/src/lib.rs b/exercises/practice/simple-linked-list/src/lib.rs index 42121a0ca..75a931155 100644 --- a/exercises/practice/simple-linked-list/src/lib.rs +++ b/exercises/practice/simple-linked-list/src/lib.rs @@ -49,13 +49,13 @@ impl FromIterator for SimpleLinkedList { // In general, it would be preferable to implement IntoIterator for SimpleLinkedList // instead of implementing an explicit conversion to a vector. This is because, together, // FromIterator and IntoIterator enable conversion between arbitrary collections. -// Given that implementation, converting to a vector is trivial: -// -// let vec: Vec<_> = simple_linked_list.into_iter().collect(); // // The reason this exercise's API includes an explicit conversion to Vec instead // of IntoIterator is that implementing that interface is fairly complicated, and // demands more of the student than we expect at this point in the track. +// +// Please note that the "front" of the linked list should correspond to the "back" +// of the vector as far as the tests are concerned. impl From> for Vec { fn from(mut _linked_list: SimpleLinkedList) -> Vec {