fixed code example

The code example wasn't copy-paste-able since some curly brackets got commented out.