Guide: patterns.

Fixes #4417.