diff options
| author | bors <bors@rust-lang.org> | 2014-02-07 20:46:30 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-07 20:46:30 -0800 |
| commit | dde2e0b3865ba040261d2078db371adbefb32506 (patch) | |
| tree | f7e98095e05ec7f5be10dd73f7e307f3e0921c5d /src/doc | |
| parent | 80c6c73647cc3294c587d8089d6628d8969f0b71 (diff) | |
| parent | b89afe2af7bdd9b65836b278c6e0322a8f91fb07 (diff) | |
auto merge of #12066 : huonw/rust/show2, r=alexcrichton
- Convert the formatting traits to `&self` rather than `_: &Self`
- Rejig `syntax::ext::{format,deriving}` a little in preparation
- Implement `#[deriving(Show)]`
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rust.md | 5 | ||||
| -rw-r--r-- | src/doc/tutorial.md | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md index 21c2e5eefec..bae8f562af5 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -1969,13 +1969,14 @@ impl<T: Eq> Eq for Foo<T> { Supported traits for `deriving` are: * Comparison traits: `Eq`, `TotalEq`, `Ord`, `TotalOrd`. -* Serialization: `Encodable`, `Decodable`. These require `extra`. +* Serialization: `Encodable`, `Decodable`. These require `serialize`. * `Clone` and `DeepClone`, to perform (deep) copies. * `IterBytes`, to iterate over the bytes in a data type. * `Rand`, to create a random instance of a data type. * `Default`, to create an empty instance of a data type. * `Zero`, to create an zero instance of a numeric data type. -* `FromPrimitive`, to create an instance from a numeric primitve. +* `FromPrimitive`, to create an instance from a numeric primitive. +* `Show`, to format a value using the `{}` formatter. ### Stability One can indicate the stability of an API using the following attributes: diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 5d60b90a8f3..a5426c20619 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2523,7 +2523,7 @@ enum ABC { A, B, C } The full list of derivable traits is `Eq`, `TotalEq`, `Ord`, `TotalOrd`, `Encodable` `Decodable`, `Clone`, `DeepClone`, -`IterBytes`, `Rand`, `Default`, `Zero`, and `ToStr`. +`IterBytes`, `Rand`, `Default`, `Zero`, `FromPrimitive` and `Show`. # Crates and the module system |
