Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
StrayLittlePunk authored Dec 27, 2022
1 parent 278f6c5 commit 25085cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/src/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ pub use rocksdb::{DBIterator as DBIter, Direction, IteratorMode};

/// An iterator over a column family, with specifiable ranges and direction.
pub trait DBIterator {
/// Opens an interator using the provided IteratorMode.
/// Opens an iterator using the provided IteratorMode.
/// This is used when you want to iterate over a specific ColumnFamily
fn iter(&self, col: Col, mode: IteratorMode) -> Result<DBIter> {
let opts = ReadOptions::default();
self.iter_opt(col, mode, &opts)
}

/// Opens an interator using the provided IteratorMode and ReadOptions.
/// Opens an iterator using the provided IteratorMode and ReadOptions.
/// This is used when you want to iterate over a specific ColumnFamily with a modified ReadOptions
fn iter_opt(&self, col: Col, mode: IteratorMode, readopts: &ReadOptions) -> Result<DBIter>;
}
Expand Down

0 comments on commit 25085cb

Please sign in to comment.