]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #40144 - MajorBreakfast:patch-7, r=frewsxcv
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 2 Mar 2017 10:29:36 +0000 (11:29 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2017 10:29:36 +0000 (11:29 +0100)
Unit-like structs doc: Improve code sample

r? @steveklabnik

BTW it seems that
```Rust
let p = Proton {};
```
compiles without an error. That's why I didn't add it to the example. It's about consistency anyway.

1  2 
src/doc/book/src/structs.md

Simple merge