docs: fix example custom function

closes #30