diff --git a/docs/promise.md b/docs/promise.md index 78ae462..8b8c0fc 100644 --- a/docs/promise.md +++ b/docs/promise.md @@ -118,7 +118,7 @@ function loadImageAsync(url) { ```javascript const getJSON = function(url) { const promise = new Promise(function(resolve, reject){ - const handler = function () { + const handler = function() { if (this.readyState !== 4) { return; }