From: Erik Davidson Date: Thu, 12 Nov 2015 21:03:36 +0000 (-0600) Subject: Fix the manual implementation example for the Debug trait so it matches the given... X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=83c3125383090d6d7630694422e1f1937d71ce8f;p=rust.git Fix the manual implementation example for the Debug trait so it matches the given output --- diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index f850cdbbd60..8fe65e27c03 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -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) /// } /// } ///