Add .eq() usage to docs and fix docs typos (#1405)

* Use `eq` for example

* Use the base `eq` function rather than `===`, so that comparisons are made in a consistent manner in docs

* Add `eq` example

* Add an example of using the `eq` method to the base docs

* Adjust docs/examples

* Fix a number of typos in the static docs and examples
* Adjust various comments in docs examples such that they are written in a consistent case

* Fix metadata docs spacing

* Adjust the metadata documentation generation such that unnecessary spaces are trimmed
This commit is contained in:
James Lefrère
2019-09-19 11:43:47 +02:00
committed by Jaco Greeff
parent 229fd72526
commit 73d7a57d38
29 changed files with 152 additions and 130 deletions
+4 -4
View File
@@ -5,16 +5,16 @@ Constant queries will introduce you to the concepts behind the types and the int
For some background: constants are values that are defined in the runtime and used as part of chain operations. These constants can be changed as part of an upgrade.
```js
// initialize the API as per previous sections
// Initialize the API as per previous sections
...
// the length of an epoch (session) in Babe
// The length of an epoch (session) in Babe
console.log(api.consts.babe.epochDuration.toNumber());
// the amount required to create a new account
// The amount required to create a new account
console.log(api.consts.balances.creationFee.toNumber());
// the amount required per byte on an extrinsic
// The amount required per byte on an extrinsic
console.log(api.consts.balances.transactionByteFee.toNumber());
```