Fix a compile error of example code

Just brace stuff