Update README.md

Updated the snippet code in the readme.md