docs: fix example code

fixes #3