Update api.md : fix slight copy/paste error

fix a slight copy/paste error that misled me for 10 minutes ;)