Skip to content

Commit

Permalink
Oops fix output examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Mar 29, 2015
1 parent 842e6cf commit 3c0c8fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/fmt/mod.rs
Expand Up @@ -696,7 +696,7 @@ impl<'a> Formatter<'a> {
/// }
/// }
///
/// // prints "Foo { 10, 11 }"
/// // prints "[10, 11]"
/// println!("{:?}", Foo(vec![10, 11]));
/// ```
#[unstable(feature = "debug_builders", reason = "method was just created")]
Expand All @@ -722,7 +722,7 @@ impl<'a> Formatter<'a> {
/// }
/// }
///
/// // prints "Foo { 10, 11 }"
/// // prints "{10, 11}"
/// println!("{:?}", Foo(vec![10, 11]));
/// ```
#[unstable(feature = "debug_builders", reason = "method was just created")]
Expand All @@ -744,11 +744,11 @@ impl<'a> Formatter<'a> {
///
/// impl fmt::Debug for Foo {
/// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
/// self.0.iter().fold(fmt.debug_map(), |b, (k, v)| b.entry(k, v)).finish()
/// self.0.iter().fold(fmt.debug_map(), |b, &(ref k, ref v)| b.entry(k, v)).finish()
/// }
/// }
///
/// // prints "Foo { "A": 10, "B": 11 }"
/// // prints "{"A": 10, "B": 11}"
/// println!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)]));
/// ```
#[unstable(feature = "debug_builders", reason = "method was just created")]
Expand Down

0 comments on commit 3c0c8fc

Please sign in to comment.