Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Jun 25, 2024
1 parent 6f427d5 commit a9a4204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/trie/trie/src/forward_cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ where
K: PartialOrd,
{
/// Returns the first entry from the current cursor position that's greater or equal to the
/// provided key. This method advance the cursor forward.
/// provided key. This method advances the cursor forward.
pub fn seek(&mut self, key: &K) -> Option<&(K, V)> {
let mut entry = self.entries.get(self.index);
while entry.map_or(false, |(k, _)| k < key) {
Expand All @@ -30,7 +30,7 @@ where
}

/// Returns the first entry from the current cursor position that's greater than the provided
/// key. This method advance the cursor forward.
/// key. This method advances the cursor forward.
pub fn first_after(&mut self, key: &K) -> Option<&(K, V)> {
let mut entry = self.entries.get(self.index);
while entry.map_or(false, |(k, _)| k <= key) {
Expand Down

0 comments on commit a9a4204

Please sign in to comment.