Elaborate on destructuring let

Fixes #20471.
This commit is contained in:
Steve Klabnik 2015-01-12 15:28:09 -05:00
parent b21a6da340
commit 2297b0cb00

View File

@ -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