Fix deprecated function name in example