Skip to content

Commit

Permalink
Update example for docs (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah authored and SBoudrias committed Dec 17, 2016
1 parent 138ed98 commit e841f35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ var debug = require('debug')('yeoman:generator');
* @property {Function} log - Output content through Interface Adapter
*
* @example
* var generator = require('yeoman-generator');
* var MyGenerator = generator.Base.extend({
* writing: function() {
* this.fs.write('var foo = 1;', this.destinationPath('index.js'));
* const Generator = require('yeoman-generator');
* module.exports = class extends Generator {
* writing() {
* this.fs.write('const foo = 1;', this.destinationPath('index.js'));
* }
* });
* };
*/

var Base = module.exports = function Base(args, options) {
Expand Down

0 comments on commit e841f35

Please sign in to comment.