mirror of https://github.com/rust-lang/book
Fix an inconsitent coding style
This commit is contained in:
parent
ba21cd0b7b
commit
b58cb13824
|
@ -152,7 +152,7 @@ let mut a = Point { x: 5, y: 6 };
|
|||
|
||||
a.x = 10;
|
||||
|
||||
let b = Point { x: 5, y: 6};
|
||||
let b = Point { x: 5, y: 6 };
|
||||
|
||||
b.x = 10; // Error: cannot assign to immutable field `b.x`.
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue