Skip to content

Commit 635ed48

Browse files
committed
Add error note to illegal code snippet
1 parent 3a25b65 commit 635ed48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/structs.md

+1-1
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)