Minor documentation example fixes

Syntax fixes for a few documentation examples. Very minor.