Fix incorrect method name in example