Skip to content

Commit

Permalink
doc: Improve documentation of Limit (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan authored Jan 10, 2025
1 parent 8cc09e3 commit e0e83a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eyeball-im-util/src/vector/limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use pin_project_lite::pin_project;

pin_project! {
/// A [`VectorDiff`] stream adapter that presents a limited view of the
/// underlying [`ObservableVector`]s items.
/// underlying [`ObservableVector`]s items. The view starts from index 0.
///
/// For example, let `S` be a `Stream<Item = VectorDiff>`. The [`Vector`]
/// represented by `S` can have any length, but one may want to virtually
Expand Down Expand Up @@ -188,7 +188,8 @@ where
return Poll::Ready(Some(diffs));
}

// If update_limit returned None, poll the limit stream again.
// If `update_limit` returned `None`, poll the limit stream
// again.
}

// Poll `VectorDiff`s from the `inner_stream`.
Expand Down

0 comments on commit e0e83a0

Please sign in to comment.