Auto merge of #29808 - aphistic:trait-debug-example-fix, r=steveklabnik

The example given for the manual implementation of the core::fmt::Debug trait doesn't match the output after the code sample. This updates it so it matches.
This commit is contained in:
bors 2015-11-13 22:12:51 +00:00
commit c10569cac5

View File

@ -328,7 +328,7 @@ impl<'a> Display for Arguments<'a> {
///
/// impl fmt::Debug for Point {
/// fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
/// write!(f, "({}, {})", self.x, self.y)
/// write!(f, "Point {{ x: {}, y: {} }}", self.x, self.y)
/// }
/// }
///