diff --git a/docs/change-log.md b/docs/change-log.md index 8ff0d175..b87e217b 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -635,11 +635,13 @@ greetAsync() ### `v1.x` ```javascript -var greetAsync = new Promise(function(resolve){ - setTimeout(function() { - resolve("hello") - }, 1000) -}) +var greetAsync = function(){ + return new Promise(function(resolve){ + setTimeout(function() { + resolve("hello") + }, 1000) + }) +} greetAsync() .then(function(value) {return value + " world"})