mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-24 16:10:25 +08:00
Add a missing rust syntax annotation
This commit is contained in:
parent
2b87c56f35
commit
a505ae2fbd
@ -140,7 +140,7 @@ that you already know, except without the `struct` keyword and they are grouped
|
||||
together under the `Message` type. These structs could hold the same data that
|
||||
these enum variants hold:
|
||||
|
||||
```
|
||||
```rust
|
||||
struct QuitMessage; // unit struct
|
||||
struct MoveMessage {
|
||||
x: i32,
|
||||
|
Loading…
Reference in New Issue
Block a user