Skip to content

Commit 83c3125

Browse files
committed
Fix the manual implementation example for the Debug trait so it matches the given output
1 parent 098ea17 commit 83c3125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
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)