Fix code snippet

Variable names don’t match.
Merge pull request #26 from ole/patch-1

Fix code snippet