Update cookbook.rst

A method name is incorrect in a comment.