Skip to content

Commit

Permalink
Fix incorrect comment refers (#3253)
Browse files Browse the repository at this point in the history
Fix typos.
  • Loading branch information
paulfisherz authored Feb 5, 2025
1 parent d414910 commit 98f7b3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion linera-views/src/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl UnorderedBatch {
/// That is, there should not be any two prefixes p1 and p2 such that p1 < p2 for
/// the lexicographic ordering on `Vec<u8>` entries.
/// Under this condition we have equivalence between the following two statements:
/// * There is an key_prefix in `key_prefiw_set` that matches `key`.
/// * There is an key_prefix in `key_prefix_set` that matches `key`.
/// * The highest key_prefix in `key_prefix_set` is actually matching.
fn is_prefix_matched(key_prefix_set: &BTreeSet<Vec<u8>>, key: &[u8]) -> bool {
let range = (Bound::Unbounded, Bound::Included(key.to_vec()));
Expand Down
4 changes: 2 additions & 2 deletions linera-views/src/test_utils/test_views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ impl TestView for TestCollectionView<MemoryContext<()>> {
}
}

/// Wrapper to test with a [`CollectionView`].
/// Wrapper to test with a [`QueueView`].
#[derive(RootView, ClonableView)]
pub struct TestQueueView<C> {
queue: QueueView<C, u16>,
Expand Down Expand Up @@ -441,7 +441,7 @@ impl TestView for TestQueueView<MemoryContext<()>> {
}
}

/// Wrapper to test with a [`CollectionView`].
/// Wrapper to test with a [`BucketQueueView`].
#[derive(RootView, ClonableView)]
pub struct TestBucketQueueView<C> {
queue: BucketQueueView<C, u16, 2>,
Expand Down

0 comments on commit 98f7b3e

Please sign in to comment.