mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 08:59:17 -04:00
Merge pull request #652 from alyssais/patch-1
Add missing highlighting in first edition structs
This commit is contained in:
@@ -121,7 +121,7 @@ Initialization of a data structure (struct, enum, union) can be simplified when
|
||||
fields of the data structure are initialized with variables of the same
|
||||
names as the fields.
|
||||
|
||||
```
|
||||
```rust
|
||||
#[derive(Debug)]
|
||||
struct Person<'a> {
|
||||
name: &'a str,
|
||||
|
||||
Reference in New Issue
Block a user