From 9d2823da893ed250719903cf6c8ec37355c84f7c Mon Sep 17 00:00:00 2001 From: arkpar Date: Mon, 16 May 2016 19:46:09 +0200 Subject: [PATCH] style --- sync/src/blocks.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync/src/blocks.rs b/sync/src/blocks.rs index fa3c3c001..683db0c7b 100644 --- a/sync/src/blocks.rs +++ b/sync/src/blocks.rs @@ -83,7 +83,7 @@ impl BlockCollection { self.heads = hashes; } - /// Insert a set oh headers into collection and advance subchain head pointers. + /// Insert a set of headers into collection and advance subchain head pointers. pub fn insert_headers(&mut self, headers: Vec) { for h in headers.into_iter() { if let Err(e) = self.insert_header(h) { @@ -92,6 +92,7 @@ impl BlockCollection { } self.update_heads(); } + /// Insert a collection of block bodies for previously downloaded headers. pub fn insert_bodies(&mut self, bodies: Vec) { for b in bodies.into_iter() {