docs: update examples

This commit is contained in:
David Dias
2018-02-07 08:28:36 +00:00
parent f7f85dce0a
commit 0062a4b5eb
9 changed files with 23 additions and 23 deletions

View File

@ -52,7 +52,7 @@ parallel([
)
})
node1.dial(node2.peerInfo, '/a-protocol', (err, conn) => {
node1.dialProtocol(node2.peerInfo, '/a-protocol', (err, conn) => {
if (err) { throw err }
pull(pull.values(['This information is sent out encrypted to the other peer']), conn)
})