Fix typo "endglobals" in documentation

I was working on some snippets and looking at the documentation and
noticed a typo. "endglobals" should be "endglobal".