Fix incorrect method usage in documentation.