diff options
| author | Sterling Greene <sterling.greene@gmail.com> | 2014-02-16 13:02:43 -0500 |
|---|---|---|
| committer | Sterling Greene <sterling.greene@gmail.com> | 2014-02-16 13:43:46 -0500 |
| commit | a6995583e04c10845a1a1d11aff25e20abe823e1 (patch) | |
| tree | 4cccd942b6ae9f2cde7c3c365933770f5109443d | |
| parent | 0ba6d4885fc71ca7156e1fe689edb939e1d9d418 (diff) | |
| download | rust-a6995583e04c10845a1a1d11aff25e20abe823e1.tar.gz rust-a6995583e04c10845a1a1d11aff25e20abe823e1.zip | |
Minor documentation fixes in std::fmt
* 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) |
