Skip to content

Commit

Permalink
Rollup merge of rust-lang#37425 - polo-language:doc, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Add error note to illegal code snippet

Mark intentionally invalid code snippet in documentation as such with a comment. Similar comments used elsewhere in this file.

r? @steveklabnik
  • Loading branch information
steveklabnik authored Nov 8, 2016
2 parents 8fd2026 + 635ed48 commit b2db5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ write something like this:

```rust,ignore
struct Point {
mut x: i32,
mut x: i32, // This causes an error.
y: i32,
}
```
Expand Down

0 comments on commit b2db5b9

Please sign in to comment.