Skip to content

Commit

Permalink
Elaborate on destructuring let
Browse files Browse the repository at this point in the history
Fixes #20471.
  • Loading branch information
steveklabnik committed Jan 12, 2015
1 parent b21a6da commit 2297b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/trpl/compound-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2297b0c

Please sign in to comment.