Fix a compile error of example code

Just braces stuff