Fix typo "endglobals" in documentation

I was working on some snippets and looking at the documentation and
noticed a typo. "endglobals" should be "endglobal".
Merge pull request #413 from lencioni/documentation

Fix typo "endglobals" in documentation