diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-10 08:42:45 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-10 08:42:45 -0800 |
| commit | 7e378edb39df4c5499fc37103feeeddc8e3e6269 (patch) | |
| tree | af12fb440fe1696ee71b4256c082996ab4787205 /src/doc/reference.md | |
| parent | 0568422a27ce4dd9a7f2b1c71710700be54a1da4 (diff) | |
| parent | 34afe5e193182a0029abe1ae8258f79f4cd56cd9 (diff) | |
| download | rust-7e378edb39df4c5499fc37103feeeddc8e3e6269.tar.gz rust-7e378edb39df4c5499fc37103feeeddc8e3e6269.zip | |
rollup merge of #22094: alkor/cleanup-show-string
Rename several remaining `Show`s to Debug, `String`s to Display (mostly in comments and docs). 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 09181e10abd..1b1913ea65e 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2356,8 +2356,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 |
