diff --git a/README.md b/README.md index a05f49c0..d8a5778b 100644 --- a/README.md +++ b/README.md @@ -67,11 +67,11 @@ const daemonFactory = require('ipfsd-ctl') const local = daemonFactory.localController local.spawn(function (err, ipfsd) { - const ipfs = ipfsd.ctl - const node = ipfsd.ctrl - ipfs.id(function (err, id) { + const ipfsCtl = ipfsd.ctl + const ipfsCtrl = ipfsd.ctrl + ipfsCtl.id(function (err, id) { console.log(id) - node.stopDaemon() + ipfsCtrl.stopDaemon() }) }) ```