diff --git a/README.md b/README.md index 07ff1dc..94367ce 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,9 @@ Obviously you don't need to follow this exact pattern, maybe you already have an ```js module.exports = function(text, opts = {}) { - const document = opts.document || window.document; + const doc = opts.document || window.document; + + const div = doc.createElement('div'); ... ```