Minor fixes to generics.md

Fix rendering of a code snippet. Make very minor tweaks to make the English read a bit more fluently.
And many thanks for proof-reading this page. I appreciate it a lot.