diff options
| author | bors <bors@rust-lang.org> | 2014-02-17 06:11:51 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-17 06:11:51 -0800 |
| commit | 88028693b842c7f6197d8d7dbc79e5019aa6f641 (patch) | |
| tree | f28295fe19b08d625e69f8ab88963cf03f67d0db | |
| parent | 57d273f65e7dee2fb9a643a55d9337d2f75ee662 (diff) | |
| parent | a6995583e04c10845a1a1d11aff25e20abe823e1 (diff) | |
| download | rust-88028693b842c7f6197d8d7dbc79e5019aa6f641.tar.gz rust-88028693b842c7f6197d8d7dbc79e5019aa6f641.zip | |
auto merge of #12325 : big-guy/rust/doc-fixes, r=alexcrichton
* Change '...your own time' => '...your own type' * Fix typo in the Vector2D example
| -rw-r--r-- | src/libstd/fmt/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/fmt/mod.rs b/src/libstd/fmt/mod.rs index bbf3b3292bf..354b812f675 100644 --- a/src/libstd/fmt/mod.rs +++ b/src/libstd/fmt/mod.rs @@ -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. // @@ -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 @@ -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) |
