Fix typo

Fix patten -> pattern

I am a pedant.
Merge pull request #1 from richo/patch-1

Fix typo