Generators: Fix code sample