Fix debug builder examples examples

This commit is contained in:
Steven Fackler
2015-05-18 20:57:11 -07:00
parent fb526cf3a1
commit e87b353d65

View File

@@ -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()
/// }
/// }
///