syntax error in code snippet

Just a couple of missing braces in the snippets guide