Fixed typos in samples.

I noticed a coding typos while showing this today and I decided to fix
them quickly.

Sorry for the confusion!