[ci skip] Fix a factual error and highlight code in generators guide.
Merge pull request #15095 from JuanitoFatas/doc/generators

[ci skip] Fix two factual errors and highlight code in generators guide.