Fixed a very confusing typo in the example source code

This is only a typo fix, but IMO very important. I spent at least half an hour trying to figure out why the example code is not working.