removes redundant curly brackets in example code [ci skip]