add missing var in code snippet
Merge pull request #1706 from sly7-7/patch-3

add missing var in code snippet