Correcting code example

Doc incorrectly makes a call to close(), when it should be calling closeCursor()