Skip to content

Commit b2db5b9

Browse files
authored
Rollup merge of #37425 - polo-language:doc, r=GuillaumeGomez
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
2 parents 8fd2026 + 635ed48 commit b2db5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ write something like this:
6161

6262
```rust,ignore
6363
struct Point {
64-
mut x: i32,
64+
mut x: i32, // This causes an error.
6565
y: i32,
6666
}
6767
```

0 commit comments

Comments
 (0)