]> git.lizzy.rs Git - rust.git/commitdiff
Fix the manual implementation example for the Debug trait so it matches the given...
authorErik Davidson <erik@erikd.org>
Thu, 12 Nov 2015 21:03:36 +0000 (15:03 -0600)
committerErik Davidson <erik.davidson@corvisa.com>
Thu, 12 Nov 2015 21:03:36 +0000 (15:03 -0600)
src/libcore/fmt/mod.rs

index f850cdbbd609057bb752bdbdd1bbeff1acb4ec87..8fe65e27c03082555b1cfe3766af060554670eb7 100644 (file)
@@ -328,7 +328,7 @@ fn fmt(&self, fmt: &mut Formatter) -> Result {
 ///
 /// 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)
 ///     }
 /// }
 ///