diff options
| author | bors <bors@rust-lang.org> | 2015-11-13 22:12:51 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-11-13 22:12:51 +0000 |
| commit | c10569cac5561167c10359d20a3ca38dc4ae2efa (patch) | |
| tree | 9c7496cdd4fa8a2ac9194c96c9855c1f1760f055 | |
| parent | 5f2ffe0066b901efd12efee92562ffc5c21f9b4b (diff) | |
| parent | 83c3125383090d6d7630694422e1f1937d71ce8f (diff) | |
| download | rust-c10569cac5561167c10359d20a3ca38dc4ae2efa.tar.gz rust-c10569cac5561167c10359d20a3ca38dc4ae2efa.zip | |
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.
| -rw-r--r-- | src/libcore/fmt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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) /// } /// } /// |
