docs: fix typo in P.when
patterns code example
#260
Merged
P.when
patterns code example
#260