Clarified an example in the pattern matching docs…

…to avoid confusion. Also fixed some typos and grammatical slips.