Skip to content

Commit

Permalink
docs: remove outdated comment in cursor::Walker (#10658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thegaram authored Sep 2, 2024
1 parent 212a6a0 commit 2c0170a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/storage/db-api/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ pub trait DbDupCursorRW<T: DupSort> {
}

/// Provides an iterator to `Cursor` when handling `Table`.
///
/// Reason why we have two lifetimes is to distinguish between `'cursor` lifetime
/// and inherited `'tx` lifetime. If there is only one, rust would short circle
/// the Cursor lifetime and it wouldn't be possible to use Walker.
pub struct Walker<'cursor, T: Table, CURSOR: DbCursorRO<T>> {
/// Cursor to be used to walk through the table.
cursor: &'cursor mut CURSOR,
Expand Down

0 comments on commit 2c0170a

Please sign in to comment.