Be less dogmatic about idiomatic

Connects to #106.
This commit is contained in:
Carol (Nichols || Goulding) 2016-06-29 22:10:22 -06:00
parent c7979df8b2
commit b1d3ceb269

View File

@ -65,8 +65,8 @@ let loopback = IpAddr {
```
Weve used a struct to bundle the two values together: now we keep the kind
with the value itself. This design isnt bad, exactly, but it wouldnt be
considered idiomatic Rust. We can represent the same thing with just an enum:
with the value itself. We can represent the same thing in a different way with
just an enum:
```rust
enum IpAddr {