From e841f352b6213408fb5e4c14ff188e5cf9c19d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BChnel?= Date: Sun, 18 Dec 2016 00:42:36 +0100 Subject: [PATCH] Update example for docs (#987) --- lib/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/index.js b/lib/index.js index 91161246..0821c265 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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) {