diff --git a/README.md b/README.md index 510e6b9f..b427bc1c 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ QRCode.toString('I am a pony!',{type:'terminal'}, function (err, url) { Promises and Async/Await can be used in place of callback function. ```javascript -import QRCode from 'qrcode' +import * as QRCode from 'qrcode' // With promises QRCode.toDataURL('I am a pony!')