Very small wording/typo fixes for docs.

This commit is contained in:
Luke Anderson 2019-05-10 13:49:01 +10:00
parent 3be80ba9a9
commit 93a4bef41c
No known key found for this signature in database
GPG Key ID: 44408169EC61E228

View File

@ -1,8 +1,8 @@
//! Performs cached merkle-hashing adhering to the Ethereum 2.0 specification defined //! Performs cached merkle-hashing adhering to the Ethereum 2.0 specification defined
//! [here](https://github.com/ethereum/eth2.0-specs/blob/v0.5.1/specs/simple-serialize.md#merkleization). //! [here](https://github.com/ethereum/eth2.0-specs/blob/v0.5.1/specs/simple-serialize.md#merkleization).
//! //!
//! Caching allows for reduced hashing when some object has only been partially modified. This //! Caching allows for reduced hashing when some object has only been partially modified, which
//! gives significant CPU-time savings (at the cost of additional storage). For example, //! consumes less CPU-time at the cost of additional storage. For example,
//! determining the root of a list of 1024 items with a single modification has been observed to //! determining the root of a list of 1024 items with a single modification has been observed to
//! run in 1/25th of the time of a full merkle hash. //! run in 1/25th of the time of a full merkle hash.
//! //!
@ -96,7 +96,7 @@ macro_rules! cached_tree_hash_ssz_encoding_as_vector {
} }
/// Implements `CachedTreeHash` on `$type`, where `$type` is a variable-length list and each item /// Implements `CachedTreeHash` on `$type`, where `$type` is a variable-length list and each item
/// in `$type` is encoded as bytes by calling `item.as_bytes()`. /// in `$type` is encoded as bytes by calling `item.to_bytes()`.
#[macro_export] #[macro_export]
macro_rules! cached_tree_hash_bytes_as_list { macro_rules! cached_tree_hash_bytes_as_list {
($type: ident) => { ($type: ident) => {