diff options
| author | Alexander Korolkov <alexander.korolkov@gmail.com> | 2015-02-05 15:04:07 +0300 |
|---|---|---|
| committer | Alexander Korolkov <alexander.korolkov@gmail.com> | 2015-02-08 20:00:30 +0300 |
| commit | 34afe5e193182a0029abe1ae8258f79f4cd56cd9 (patch) | |
| tree | b3b464820ac3147838891a66351701f8071ce00c /src/doc/reference.md | |
| parent | 725cc06464abda7a657780f12feaefb7f10333c6 (diff) | |
| download | rust-34afe5e193182a0029abe1ae8258f79f4cd56cd9.tar.gz rust-34afe5e193182a0029abe1ae8258f79f4cd56cd9.zip | |
Rename Show to Debug, String to Display
Update reference.md: - derive() no longer supports Zero trait - derive() now supports Copy trait
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 9c8191a386d..999cb217f93 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2354,8 +2354,8 @@ Supported traits for `derive` are: * `FromPrimitive`, to create an instance from a numeric primitive. * `Hash`, to iterate over the bytes in a data type. * `Rand`, to create a random instance of a data type. -* `Show`, to format a value using the `{}` formatter. -* `Zero`, to create a zero instance of a numeric data type. +* `Debug`, to format a value using the `{:?}` formatter. +* `Copy`, for "Plain Old Data" types which can be copied by simply moving bits. ### Compiler Features |
