docs/reference/api: fix typo in docs