chore: comment typos

This commit is contained in:
aggstam
2023-07-27 19:09:20 +03:00
parent 9ac60439be
commit 9cd9d13456
2 changed files with 3 additions and 3 deletions

View File

@@ -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<BlockchainOverlayPtr> {
let overlay = Arc::new(Mutex::new(self.overlay.lock().unwrap().clone()));
let headers = HeaderStoreOverlay::new(&overlay)?;

View File

@@ -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<Self> {
let overlay = self.overlay.lock().unwrap().full_clone()?;
let proposals = self.proposals.clone();