From 9cd9d13456ec4df0d39301b2cde43e2b56ee2d8d Mon Sep 17 00:00:00 2001 From: aggstam Date: Thu, 27 Jul 2023 19:09:20 +0300 Subject: [PATCH] chore: comment typos --- src/blockchain/mod.rs | 2 +- src/validator/consensus/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blockchain/mod.rs b/src/blockchain/mod.rs index c1a3529e4..75a56fcf6 100644 --- a/src/blockchain/mod.rs +++ b/src/blockchain/mod.rs @@ -542,7 +542,7 @@ impl BlockchainOverlay { } /// Auxiliary function to create a full clone using SledDbOverlay::clone, - /// and creating new pointers of underlying overlays. + /// generating new pointers for the underlying overlays. pub fn full_clone(&self) -> Result { let overlay = Arc::new(Mutex::new(self.overlay.lock().unwrap().clone())); let headers = HeaderStoreOverlay::new(&overlay)?; diff --git a/src/validator/consensus/mod.rs b/src/validator/consensus/mod.rs index 966f84d58..4b8633ae0 100644 --- a/src/validator/consensus/mod.rs +++ b/src/validator/consensus/mod.rs @@ -97,8 +97,8 @@ impl Fork { } /// Auxiliary function to create a full clone using BlockchainOverlay::full_clone. - /// Changes to this clone don't affect original record, since underlying overlay - /// is cloned and pointers have been updated to the new one. + /// Changes to this copy don't affect original fork overlay records, since underlying + /// overlay pointer have been updated to the cloned one. pub fn full_clone(&self) -> Result { let overlay = self.overlay.lock().unwrap().full_clone()?; let proposals = self.proposals.clone();