docs: fix typo in public api page

Change 'exitted' to 'exited' in two places on the public api page.
Merge pull request #602 from kolvia/docs-fixtypo

docs: fix typo in public api page