fix code excerpt

the excerpt code didn't match the actual code
Merge pull request #40 from WickyNilliams/patch-1

fix code excerpt