From 8ff26bb260a121aa44518078cab1bdd8acec0184 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 29 Jul 2015 10:11:40 -0400 Subject: [PATCH] Fixes for various formatting issues and typos. --- README.md | 2 +- docs/index.md | 2 +- docs/transaction.md | 2 +- lib/block/block.js | 4 ++-- lib/block/blockheader.js | 2 +- lib/errors/spec.js | 2 +- lib/hdpublickey.js | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 441d48a..2824b46 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Run all the tests: gulp test ``` -You can also run just the NodeJS tests with `gulp test:node`, just the browser tests with `gulp test:browser` +You can also run just the Node.js tests with `gulp test:node`, just the browser tests with `gulp test:browser` or create a test coverage report (you can open `coverage/lcov-report/index.html` to visualize it) with `gulp coverage`. ## License diff --git a/docs/index.md b/docs/index.md index b7629ea..e6608d7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ ## Principles -Bitcoin is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services. Bitcore provides a reliable API for javascript apps that need to interface with Bitcoin. +Bitcoin is a powerful new peer-to-peer platform for the next generation of financial technology. The decentralized nature of the Bitcoin network allows for highly resilient bitcoin infrastructure, and the developer community needs reliable, open-source tools to implement bitcoin apps and services. Bitcore provides a reliable API for JavaScript apps that need to interface with Bitcoin. To get started, just `npm install bitcore` or `bower install bitcore`. diff --git a/docs/transaction.md b/docs/transaction.md index 68dc0ae..321cce7 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -143,7 +143,7 @@ To remove all outputs, you can use `clearOutputs()`, which preserves change outp There are a series of methods used for serialization: -* `toObject`: Returns a plain javascript object with no methods and enough information to fully restore the state of this transaction. Using other serialization methods (except for `toJSON`) will cause a some information to be lost. +* `toObject`: Returns a plain JavaScript object with no methods and enough information to fully restore the state of this transaction. Using other serialization methods (except for `toJSON`) will cause a some information to be lost. * `toJSON`: Returns a string with a JSON-encoded version of the output for `toObject`. * `toString` or `uncheckedSerialize`: Returns an hexadecimal serialization of the transaction, in the [serialization format for bitcoin](https://bitcoin.org/en/developer-reference#raw-transaction-format). * `serialize`: Does a series of checks before serializing the transaction diff --git a/lib/block/block.js b/lib/block/block.js index 54446ae..f709102 100644 --- a/lib/block/block.js +++ b/lib/block/block.js @@ -62,7 +62,7 @@ Block._fromJSON = function _fromJSON(data) { }; /** - * @param {Object} - A plain javascript object + * @param {Object} - A plain JavaScript object * @returns {Object} - An object representing block data * @private */ @@ -92,7 +92,7 @@ Block.fromJSON = function fromJSON(json) { }; /** - * @param {Object} - A plain javascript object + * @param {Object} - A plain JavaScript object * @returns {Block} - An instance of block */ Block.fromObject = function fromObject(obj) { diff --git a/lib/block/blockheader.js b/lib/block/blockheader.js index 722d7a8..92f649a 100644 --- a/lib/block/blockheader.js +++ b/lib/block/blockheader.js @@ -93,7 +93,7 @@ BlockHeader.fromJSON = function fromJSON(json) { }; /** - * @param {Object} - A plain javascript object + * @param {Object} - A plain JavaScript object * @returns {BlockHeader} - An instance of block header */ BlockHeader.fromObject = function fromObject(obj) { diff --git a/lib/errors/spec.js b/lib/errors/spec.js index dd46d6f..ef54ddf 100644 --- a/lib/errors/spec.js +++ b/lib/errors/spec.js @@ -28,7 +28,7 @@ module.exports = [{ } }, { name: 'AbstractMethodInvoked', - message: 'Abstract Method Invokation: {0}' + message: 'Abstract Method Invocation: {0}' }, { name: 'InvalidArgumentType', message: function() { diff --git a/lib/hdpublickey.js b/lib/hdpublickey.js index 11cf9ff..a7b63ba 100644 --- a/lib/hdpublickey.js +++ b/lib/hdpublickey.js @@ -391,7 +391,7 @@ HDPublicKey.prototype.inspect = function() { }; /** - * Returns a plain javascript object with information to reconstruct a key. + * Returns a plain JavaScript object with information to reconstruct a key. * * Fields are: