Update API.md

Simple fix to one of the examples. Was reading and came across it.