Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
3773: [db] fix comment typos r=zhangsoledad a=StrayLittlePunk

### What problem does this PR solve?

fix comment typos 

### What is changed and how it works?

What's Changed:

### Related changes

- use `iterator` instead of `interator`
### Check List

- Unit test
- Integration test


```release-note
Title Only: Include only the PR title in the release note.
```



Co-authored-by: stray little punk <[email protected]>
  • Loading branch information
bors[bot] and StrayLittlePunk authored Dec 27, 2022
2 parents 278f6c5 + 25085cb commit 2e96570
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 2e96570

Please sign in to comment.