Skip to content

Commit

Permalink
auto merge of rust-lang#12325 : big-guy/rust/doc-fixes, r=alexcrichton
Browse files Browse the repository at this point in the history
* Change '...your own time' => '...your own type'
* Fix typo in the Vector2D example
  • Loading branch information
bors committed Feb 17, 2014
2 parents 57d273f + a699558 commit 8802869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/fmt/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
Expand Down Expand Up @@ -158,7 +158,7 @@ library as well. If no format is specified (as in `{}` or `{:6}`), then the
format trait used is the `Show` trait. This is one of the more commonly
implemented traits when formatting a custom type.
When implementing a format trait for your own time, you will have to implement a
When implementing a format trait for your own type, you will have to implement a
method of the signature:
```rust
Expand Down Expand Up @@ -196,7 +196,7 @@ struct Vector2D {
impl fmt::Show for Vector2D {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
// The `f.buf` value is of the type `&mut io::Writer`, which is what th
// The `f.buf` value is of the type `&mut io::Writer`, which is what the
// write! macro is expecting. Note that this formatting ignores the
// various flags provided to format strings.
write!(f.buf, "({}, {})", self.x, self.y)
Expand Down

0 comments on commit 8802869

Please sign in to comment.