Fixed some snippets

In conformance to "The Swift Programming Language" book,
there should be no space after "init" and "subscript".