diff --git a/doc/rust.md b/doc/rust.md index 136c7ee9da3f2..385596e841d86 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1035,7 +1035,7 @@ A _structure_ is a nominal [structure type](#structure-types) defined with the k An example of a `struct` item and its use: ~~~~ -struct Point {x: int, y: int} +struct Point {x: int, y: int}; let p = Point {x: 10, y: 11}; let px: int = p.x; ~~~~