Minor fixes to generics.md

Fix rendering of a code snippet. Make very minor tweaks to make the English read a bit more fluently.