Fix api typo in example