Make an example more clear with sample code.

Fixes #11113.
auto merge of #15121 : steveklabnik/rust/matching_docs, r=alexcrichton

Fixes #11113.