Fix syntax error in generated examples