docs/reference/api: fix typo in docs

Signed-off-by: Francisco Souza <f@souza.cc>