Skip to content

Commit 4c615a8

Browse files
committed
Merge pull request #21038 from steveklabnik/gh20471
Elaborate on destructuring let Reviewed-by: alexcrichton
2 parents 85bdee7 + 2297b0c commit 4c615a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/trpl/compound-data-types.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ println!("length is {} inches", integer_length);
194194
```
195195

196196
As you can see here, you can extract the inner integer type through a
197-
destructuring `let`.
197+
destructuring `let`, as we discussed previously in 'tuples.' In this case, the
198+
`let Inches(integer_length)` assigns `10` to `integer_length`.
198199

199200
## Enums
200201

0 commit comments

Comments
 (0)