From bd54f8199bc80aea0b3f3b8c39ca932a0fca76ee Mon Sep 17 00:00:00 2001 From: parrrate Date: Thu, 9 Apr 2026 12:56:18 +0000 Subject: [PATCH] more compact Linked hidden --- src/exercises/linked.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/exercises/linked.md b/src/exercises/linked.md index 2953a7f..3074a86 100644 --- a/src/exercises/linked.md +++ b/src/exercises/linked.md @@ -15,8 +15,7 @@ struct Linked<'a, F> { } impl<'a, F: FnMut(String)> Linked<'a, F> { -# fn __() { -# mod __ { +# fn __() { mod __ { # struct Node<'a> { next: Option>, value: &'a str } # struct Linked<'a, F> { node: Box>, callback: &'a mut F } # impl Linked<'_, F> { @@ -25,10 +24,7 @@ impl<'a, F: FnMut(String)> Linked<'a, F> { Self { node: Node { next: Some(self.node), -# value: unimplemented!(), -# }.into(), -# callback: self.callback, -# }; } } } } +# value: unimplemented!(), }.into(), callback: self.callback, }; } } } } # fn with<'b>(&'b mut self, value: &'b str) -> Linked<'b, F> { # Linked { # node: Node {