small fix to @jdnc's comment on api.rst