Improved pattern-match code and explanation.

This cleans up a warning about an unused variable and explains the code
further.
auto merge of #12035 : chromatic/rust/tutorial_improvements, r=alexcrichton

This cleans up a warning about an unused variable and explains the code
further.