about summary refs log tree commit diff
path: root/src/etc/tidy.py
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-02-06 17:45:19 +0000
committerbors <bors@rust-lang.org>2015-02-06 17:45:19 +0000
commit7884eb8e2ff8f0796a95aa0216e69241934ce14f (patch)
tree27cc7ee347ee0a8c278152b0f26d4154fecff32e /src/etc/tidy.py
parent0b56e9b1cb2fc00d7d9bc044e2a78b8fb12f2f1b (diff)
parenta9583d62365c144e55f6c8ae49e30193c41c4268 (diff)
downloadrust-7884eb8e2ff8f0796a95aa0216e69241934ce14f.tar.gz
rust-7884eb8e2ff8f0796a95aa0216e69241934ce14f.zip
Auto merge of #21860 - mdinger:enum_rewording, r=steveklabnik
Second try to address https://github.com/rust-lang/rust/issues/21196 . A lot that was removed at the end basically seemed repetitive showing simple variations on the same type. It seems more effective to just show more variants at the beginning instead.

If you want to pack values into an example, better to use `i32` or some digit than `String` because you don't need the `to_string()` method.

I didn't mention `derive` because:
* I can't explain it (only use it)
* I don't have a link to a good description (maybe rustbyexample but you probably want links internal)
* Giving more detail especially stating that `==` won't work and why should help quite a bit

I didn't `make test` or check links but I will if this will be merged.

@steveklabnik 
Diffstat (limited to 'src/etc/tidy.py')
0 files changed, 0 insertions, 0 deletions