diff --git a/README.md b/README.md index 3be1a9c34..22634e742 100644 --- a/README.md +++ b/README.md @@ -228,7 +228,9 @@ engine.registerTag('upper', { }, render: function(scope, hash) { var str = Liquid.evalValue(this.str, scope); // 'alice' - return Promise.resolve(str.toUpperCase()); // 'Alice' + return str.then(function(name) { + return name.toUpperCase() // 'Alice' + }) } }); ```