Skip to content

Commit e87b353

Browse files
committed
Fix debug builder examples examples
1 parent fb526cf commit e87b353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/fmt/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ impl<'a> Formatter<'a> {
787787
///
788788
/// impl fmt::Debug for Foo {
789789
/// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
790-
/// fnt.debug_list().entries(self.0.iter()).finish()
790+
/// fmt.debug_list().entries(self.0.iter()).finish()
791791
/// }
792792
/// }
793793
///
@@ -839,7 +839,7 @@ impl<'a> Formatter<'a> {
839839
///
840840
/// impl fmt::Debug for Foo {
841841
/// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
842-
/// fmt.debug_map().entries(self.0.iter()).finish()
842+
/// fmt.debug_map().entries(self.0.iter().map(|&(ref k, ref v)| (k, v))).finish()
843843
/// }
844844
/// }
845845
///

0 commit comments

Comments
 (0)