fix / typo in events.rst

right function call has to be setType