Skip to content

Commit

Permalink
Fix the manual implementation example for the Debug trait so it match…
Browse files Browse the repository at this point in the history
…es the given output
  • Loading branch information
aphistic committed Nov 12, 2015
1 parent 098ea17 commit 83c3125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/fmt/mod.rs
Expand Up @@ -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)
/// }
/// }
///
Expand Down

0 comments on commit 83c3125

Please sign in to comment.