diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-05-18 20:57:11 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-05-18 20:57:11 -0700 |
| commit | e87b353d65c67a5e7326b2216feba9c1ddf2402c (patch) | |
| tree | 0229eed87a51a83dc994fd0362592216e16df26e | |
| parent | fb526cf3a1535b8dac0d572b7eed8d4645008407 (diff) | |
| download | rust-e87b353d65c67a5e7326b2216feba9c1ddf2402c.tar.gz rust-e87b353d65c67a5e7326b2216feba9c1ddf2402c.zip | |
Fix debug builder examples examples
| -rw-r--r-- | src/libcore/fmt/mod.rs | 4 |
1 files 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 @@ impl<'a> Formatter<'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 @@ impl<'a> Formatter<'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() /// } /// } /// |
