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:
commit
c10569cac5
@ -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)
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user