docs: fix typo in public api page

Change 'exitted' to 'exited' in two places on the public api page.