Fix example of using generator in readme