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

@ -54,7 +54,7 @@ parallel([
)
})
node1.dial(node2.peerInfo, '/print', (err, conn) => {
node1.dialProtocol(node2.peerInfo, '/print', (err, conn) => {
if (err) { throw err }
pull(pull.values(['Hello', ' ', 'p2p', ' ', 'world', '!']), conn)