From dd6a083fd323108603865759b09fd50eeb393c5e Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 7 Nov 2016 12:09:25 +0000 Subject: [PATCH] docs: fix example --- QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o | 1 - README.md | 6 +++--- examples/.gitkeep | 0 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o create mode 100644 examples/.gitkeep diff --git a/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o b/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o deleted file mode 100644 index 3b18e512db..0000000000 --- a/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o +++ /dev/null @@ -1 +0,0 @@ -hello world diff --git a/README.md b/README.md index 7d02051d83..c269ace041 100644 --- a/README.md +++ b/README.md @@ -135,18 +135,18 @@ const node = new IPFS(repo) // We need to init our repo, in this case the repo was empty // We are picking 2048 bits for the RSA key that will be our PeerId -ipfs.init({ emptyRepo: true, bits: 2048 }, (err) => { +node.init({ emptyRepo: true, bits: 2048 }, (err) => { if (err) { throw err } // Once the repo is initiated, we have to load it so that the IPFS // instance has its config values. This is useful when you have // previous created repos and you don't need to generate a new one - ipfs.load((err) => { + node.load((err) => { if (err) { throw err } // Last but not the least, we want our IPFS node to use its peer // connections to fetch and serve blocks from. - ipfs.goOnline((err) => { + node.goOnline((err) => { if (err) { throw err } // Here you should be good to go and call any IPFS function }) diff --git a/examples/.gitkeep b/examples/.gitkeep new file mode 100644 index 0000000000..e69de29bb2