Skip to content

Commit 8802869

Browse files
committed
auto merge of #12325 : big-guy/rust/doc-fixes, r=alexcrichton
* Change '...your own time' => '...your own type' * Fix typo in the Vector2D example
2 parents 57d273f + a699558 commit 8802869

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/fmt/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -158,7 +158,7 @@ library as well. If no format is specified (as in `{}` or `{:6}`), then the
158158
format trait used is the `Show` trait. This is one of the more commonly
159159
implemented traits when formatting a custom type.
160160
161-
When implementing a format trait for your own time, you will have to implement a
161+
When implementing a format trait for your own type, you will have to implement a
162162
method of the signature:
163163
164164
```rust
@@ -196,7 +196,7 @@ struct Vector2D {
196196
197197
impl fmt::Show for Vector2D {
198198
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
199-
// The `f.buf` value is of the type `&mut io::Writer`, which is what th
199+
// The `f.buf` value is of the type `&mut io::Writer`, which is what the
200200
// write! macro is expecting. Note that this formatting ignores the
201201
// various flags provided to format strings.
202202
write!(f.buf, "({}, {})", self.x, self.y)

0 commit comments

Comments
 (0)