diff --git a/db/src/iter.rs b/db/src/iter.rs index 8a4dc16acf..440a137210 100644 --- a/db/src/iter.rs +++ b/db/src/iter.rs @@ -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 { 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; }