Fixed typo in doc example

Fixes #1102