Minor fixes to generics.md

Fix rendering of a code snippet. Make very minor tweaks to make the English read a bit more fluently.
I like this one. I'll change it in your commit and push it like this