From d951cbb3bada9bd763902821244b1991d4f9ae7f Mon Sep 17 00:00:00 2001 From: Rob Riddle Date: Thu, 22 Oct 2015 18:52:49 +0300 Subject: [PATCH] Fix typos in docs --- docs/index.md | 4 ++-- lib/pool.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 4375124..689058d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,11 +6,11 @@ description: Peer-to-Peer Networking Capabilities for Bitcore ## Description -The `bitcore-p2p` module provides peer-to-peer networking capabilites for [Bitcore](https://github.com/bitpay/bitcore), and includes [Peer](peer.md) and [Pool](pool.md) classes. A [Message](messages.md) class is also exposed, in addition to [several types of messages](messages.md). Pool will maintain connection to several peers, Peers represents a node in the bitcoin network, and Message represents data sent to and from a Peer. For detailed technical information about the bitcoin protocol, please visit the [Protocol Specification](https://en.bitcoin.it/wiki/Protocol_specification) on the Bitcoin Wiki. +The `bitcore-p2p` module provides peer-to-peer networking capabilities for [Bitcore](https://github.com/bitpay/bitcore), and includes [Peer](peer.md) and [Pool](pool.md) classes. A [Message](messages.md) class is also exposed, in addition to [several types of messages](messages.md). Pool will maintain connection to several peers, Peers represents a node in the bitcoin network, and Message represents data sent to and from a Peer. For detailed technical information about the bitcoin protocol, please visit the [Protocol Specification](https://en.bitcoin.it/wiki/Protocol_specification) on the Bitcoin Wiki. ## Installation -Peer-to-peer is implemented as a seperate module. +Peer-to-peer is implemented as a separate module. For node projects: ```bash diff --git a/lib/pool.js b/lib/pool.js index 07af21e..fd3383c 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -116,7 +116,7 @@ Pool.PeerEvents = ['version', 'inv', 'getdata', 'ping', 'pong', 'addr', ]; /** - * Will initiatiate connection to peers, if available peers have been added to + * Will initiate connection to peers, if available peers have been added to * the pool, it will connect to those, otherwise will use DNS seeds to find * peers to connect. When a peer disconnects it will add another. */ @@ -150,7 +150,7 @@ Pool.prototype.numberConnected = function numberConnected() { }; /** - * Will fill the conneted peers to the maximum amount. + * Will fill the connected peers to the maximum amount. */ Pool.prototype._fillConnections = function _fillConnections() { var length = this._addrs.length; @@ -211,7 +211,7 @@ Pool.prototype._connectPeer = function _connectPeer(addr) { /** * Adds a peer with a connected socket to the _connectedPeers object, and - * intializes the associated event handlers. + * initializes the associated event handlers. * @param {Socket} - socket - A new connected socket * @param {Object} - addr - The associated addr object for the peer */