Fix generator code sample [fixes #95]