From e87b353d65c67a5e7326b2216feba9c1ddf2402c Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 18 May 2015 20:57:11 -0700 Subject: [PATCH] Fix debug builder examples examples --- src/libcore/fmt/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 796d901d73c..22575f340d7 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -787,7 +787,7 @@ pub fn debug_tuple<'b>(&'b mut self, name: &str) -> DebugTuple<'b, 'a> { /// /// impl fmt::Debug for Foo { /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - /// fnt.debug_list().entries(self.0.iter()).finish() + /// fmt.debug_list().entries(self.0.iter()).finish() /// } /// } /// @@ -839,7 +839,7 @@ pub fn debug_set<'b>(&'b mut self) -> DebugSet<'b, 'a> { /// /// impl fmt::Debug for Foo { /// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - /// fmt.debug_map().entries(self.0.iter()).finish() + /// fmt.debug_map().entries(self.0.iter().map(|&(ref k, ref v)| (k, v))).finish() /// } /// } /// -- 2.44.0