Fix typo

Fix patten -> pattern

I am a pedant.