[TIDOC-1723] Fix code sample
Merge pull request #444 from bhatfield/tidoc-1723

[TIDOC-1723] Fix code sample