Skip to content

Commit

Permalink
ungrey second part of Linked
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheyca committed Aug 30, 2024
1 parent d195b49 commit 002be12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/exercises/linked.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ impl<'a, F: FnMut(String)> Linked<'a, F> {
let mut value = node.value.to_string();
while let Some(next) = node.next {
value += next.value;
# /*
# impl<'a, F: FnMut(String)> Linked<'a, F> { fn ___(&mut self) { trait Callback { fn callback(&mut self, value: String); }
# impl<'a, F: FnMut(String)> Callback for Linked<'a, F> { fn callback(&mut self, value: String) { (self.callback)(value); } }
# { let mut node = 1; let next = 2;
node = next;
}
# let value = unimplemented!();
self.callback(value);
# */
# } }
# node = *next; }
# (self.callback)(value);
}
Expand Down

0 comments on commit 002be12

Please sign in to comment.