Correct wrong method name in example code