Syntax fixes in the layer example snippet