diff options
Diffstat (limited to 'src/doc/book/structs.md')
| -rw-r--r-- | src/doc/book/structs.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/structs.md b/src/doc/book/structs.md index 75d0093b147..b2fddf33627 100644 --- a/src/doc/book/structs.md +++ b/src/doc/book/structs.md @@ -202,7 +202,7 @@ println!("length is {} inches", integer_length); ``` As you can see here, you can extract the inner integer type through a -destructuring `let`, just as with regular tuples. In this case, the +destructuring `let`, as with regular tuples. In this case, the `let Inches(integer_length)` assigns `10` to `integer_length`. # Unit-like structs @@ -223,7 +223,7 @@ This is rarely useful on its own (although sometimes it can serve as a marker type), but in combination with other features, it can become useful. For instance, a library may ask you to create a structure that implements a certain [trait][trait] to handle events. If you don’t have -any data you need to store in the structure, you can just create a +any data you need to store in the structure, you can create a unit-like `struct`. [trait]: traits.html |
