- /// The `State` enum returned from this function indicates what state the
- /// generator is in upon returning. If the `Yielded` variant is returned
- /// then the generator has reached a suspension point and a value has been
- /// yielded out. Generators in this state are available for resumption at a
- /// later point.
+ /// The `GeneratorState` enum returned from this function indicates what
+ /// state the generator is in upon returning. If the `Yielded` variant is
+ /// returned then the generator has reached a suspension point and a value
+ /// has been yielded out. Generators in this state are available for
+ /// resumption at a later point.