From e004e05037f9cdb037576587e91004c6ef11a53c Mon Sep 17 00:00:00 2001 From: Adrian Brink Date: Wed, 5 Apr 2017 12:43:47 +0200 Subject: [PATCH] Spelling fixes and link addition about LRU cache in the docs. --- ethcore/light/src/cache.rs | 1 + ethcore/light/src/cht.rs | 2 +- ethcore/light/src/net/mod.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ethcore/light/src/cache.rs b/ethcore/light/src/cache.rs index 185007a1b..67ba11ce0 100644 --- a/ethcore/light/src/cache.rs +++ b/ethcore/light/src/cache.rs @@ -61,6 +61,7 @@ impl Default for CacheSizes { /// /// Note that almost all getter methods take `&mut self` due to the necessity to update /// the underlying LRU-caches on read. +/// [LRU-cache](https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29) pub struct Cache { headers: MemoryLruCache, canon_hashes: MemoryLruCache, diff --git a/ethcore/light/src/cht.rs b/ethcore/light/src/cht.rs index 7c749b44f..91a5496f6 100644 --- a/ethcore/light/src/cht.rs +++ b/ethcore/light/src/cht.rs @@ -15,7 +15,7 @@ //! //! Each CHT is a trie mapping block numbers to canonical hashes and total difficulty. //! One is generated for every `SIZE` blocks, allowing us to discard those blocks in -//! favor the the trie root. When the "ancient" blocks need to be accessed, we simply +//! favor of the trie root. When the "ancient" blocks need to be accessed, we simply //! request an inclusion proof of a specific block number against the trie with the //! root has. A correct proof implies that the claimed block is identical to the one //! we discarded. diff --git a/ethcore/light/src/net/mod.rs b/ethcore/light/src/net/mod.rs index e32e92145..191972451 100644 --- a/ethcore/light/src/net/mod.rs +++ b/ethcore/light/src/net/mod.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Parity. If not, see . -//! PIP Protocol Version 1 implementation. +//! PLP Protocol Version 1 implementation. //! //! This uses a "Provider" to answer requests.