mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
docs(storage): fix typos in storage crates (#20673)
Signed-off-by: Hwangjae Lee <meetrick@gmail.com> Co-authored-by: YK <chiayongkang@hotmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ pub trait DbCursorRW<T: Table> {
|
||||
fn delete_current(&mut self) -> Result<(), DatabaseError>;
|
||||
}
|
||||
|
||||
/// Read Write Cursor over `DupSorted` table.
|
||||
/// Read Write Cursor over `DupSort` table.
|
||||
pub trait DbDupCursorRW<T: DupSort> {
|
||||
/// Delete all duplicate entries for current key.
|
||||
fn delete_current_duplicates(&mut self) -> Result<(), DatabaseError>;
|
||||
|
||||
@@ -48,7 +48,7 @@ pub struct NippyJarWriter<H: NippyJarHeader = ()> {
|
||||
impl<H: NippyJarHeader> NippyJarWriter<H> {
|
||||
/// Creates a [`NippyJarWriter`] from [`NippyJar`].
|
||||
///
|
||||
/// If will **always** attempt to heal any inconsistent state when called.
|
||||
/// It will **always** attempt to heal any inconsistent state when called.
|
||||
pub fn new(jar: NippyJar<H>) -> Result<Self, NippyJarError> {
|
||||
let (data_file, offsets_file, is_created) =
|
||||
Self::create_or_open_files(jar.data_path(), &jar.offsets_path())?;
|
||||
|
||||
@@ -131,7 +131,7 @@ pub trait TryIntoHistoricalStateProvider {
|
||||
/// Note: the `pending` block is considered the block that extends the canonical chain but one and
|
||||
/// has the `latest` block as its parent.
|
||||
///
|
||||
/// All states are _inclusive_, meaning they include _all_ all changes made (executed transactions)
|
||||
/// All states are _inclusive_, meaning they include _all_ changes made (executed transactions)
|
||||
/// in their respective blocks. For example [`StateProviderFactory::history_by_block_number`] for
|
||||
/// block number `n` will return the state after block `n` was executed (transactions, withdrawals).
|
||||
/// In other words, all states point to the end of the state's respective block, which is equivalent
|
||||
|
||||
Reference in New Issue
Block a user