fix broken example in doc

fixes #303