1
Fork 0

Rename Show to Debug, String to Display

Update reference.md:
 - derive() no longer supports Zero trait
 - derive() now supports Copy trait
This commit is contained in:
Alexander Korolkov 2015-02-05 15:04:07 +03:00
parent 725cc06464
commit 34afe5e193
9 changed files with 13 additions and 14 deletions

View file

@ -1032,7 +1032,7 @@ pub fn as_pretty_json<T>(t: &T) -> AsPrettyJson<T> {
impl Json {
/// Borrow this json object as a pretty object to generate a pretty
/// representation for it via `Show`.
/// representation for it via `Display`.
pub fn pretty(&self) -> PrettyJson {
PrettyJson { inner: self }
}
@ -3540,7 +3540,7 @@ mod tests {
fn test_hashmap_with_enum_key() {
use std::collections::HashMap;
use json;
#[derive(RustcEncodable, Eq, Hash, PartialEq, RustcDecodable, Show)]
#[derive(RustcEncodable, Eq, Hash, PartialEq, RustcDecodable, Debug)]
enum Enum {
Foo,
#[allow(dead_code)]