Update cookbook.rst

A method name is incorrect in a comment.
Merge pull request #278 from tftdias/patch-1

Update cookbook.rst