@@ -696,7 +696,7 @@ impl<'a> Formatter<'a> {
696
696
/// }
697
697
/// }
698
698
///
699
- /// // prints "Foo { 10, 11 } "
699
+ /// // prints "[ 10, 11] "
700
700
/// println!("{:?}", Foo(vec![10, 11]));
701
701
/// ```
702
702
#[ unstable( feature = "debug_builders" , reason = "method was just created" ) ]
@@ -722,7 +722,7 @@ impl<'a> Formatter<'a> {
722
722
/// }
723
723
/// }
724
724
///
725
- /// // prints "Foo { 10, 11 }"
725
+ /// // prints "{ 10, 11}"
726
726
/// println!("{:?}", Foo(vec![10, 11]));
727
727
/// ```
728
728
#[ unstable( feature = "debug_builders" , reason = "method was just created" ) ]
@@ -744,11 +744,11 @@ impl<'a> Formatter<'a> {
744
744
///
745
745
/// impl fmt::Debug for Foo {
746
746
/// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
747
- /// self.0.iter().fold(fmt.debug_map(), |b, (k, v)| b.entry(k, v)).finish()
747
+ /// self.0.iter().fold(fmt.debug_map(), |b, &(ref k, ref v)| b.entry(k, v)).finish()
748
748
/// }
749
749
/// }
750
750
///
751
- /// // prints "Foo { "A": 10, "B": 11 }"
751
+ /// // prints "{ "A": 10, "B": 11}"
752
752
/// println!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)]));
753
753
/// ```
754
754
#[ unstable( feature = "debug_builders" , reason = "method was just created" ) ]
0 commit comments