fix small error in sample code

This proposed change is both minimal and obvious.

I might propose further unrelated changes, but suspect it is better to propose these separately so they are trivial to accept.

Thanks for developing and sharing MongoDB!  I hope I can make more substantial contributions down the track as I become more experienced with it.

Greg
--