Update api.md

fix a slight copy/cut error that misled me for 10 minutes ;)
Merge pull request #282 from Offirmo/patch-1

Update api.md : fix slight copy/paste error