Update generic.c

Fix typo in the doc
Merge pull request #56 from pmoulon/patch-3

generic.c: fix typos