parent
b21a6da340
commit
2297b0cb00
1 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,8 @@ println!("length is {} inches", integer_length);
|
|||
```
|
||||
|
||||
As you can see here, you can extract the inner integer type through a
|
||||
destructuring `let`.
|
||||
destructuring `let`, as we discussed previously in 'tuples.' In this case, the
|
||||
`let Inches(integer_length)` assigns `10` to `integer_length`.
|
||||
|
||||
## Enums
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue