Skip to content

Commit c10569c

Browse files
committed
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.
2 parents 5f2ffe0 + 83c3125 commit c10569c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl<'a> Display for Arguments<'a> {
328328
///
329329
/// impl fmt::Debug for Point {
330330
/// fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
331-
/// write!(f, "({}, {})", self.x, self.y)
331+
/// write!(f, "Point {{ x: {}, y: {} }}", self.x, self.y)
332332
/// }
333333
/// }
334334
///

0 commit comments

Comments
 (0)