Merge pull request #3980 from kenjis/patch-2

[ci skip] Fix sample code