Add missing curly bracket

I copy-pasted the last example into my project. This occurs an error.