Correct the example for `getGlobals`.

Closes #5.