Fix syntax error in example code