Update README.md

Fixed incorrect method definition.