Skip to content

Commit

Permalink
im: Fix a typo in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan authored Sep 18, 2024
1 parent 7557af4 commit 4254403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eyeball-im/src/vector/subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ impl<T: Clone + Send + Sync + 'static> VectorSubscriber<T> {
/// Destructure this `VectorSubscriber` into the initial values and a stream
/// of `Vec<VectorDiff>`s.
///
/// Semantically equivalent to calling `.values()` and `.into_stream()`
/// separately, but guarantees that the values are not unnecessarily cloned.
/// Semantically equivalent to calling `.values()` and
/// `.into_batched_stream()` separately, but guarantees that the values
/// are not unnecessarily cloned.
pub fn into_values_and_batched_stream(self) -> (Vector<T>, VectorSubscriberBatchedStream<T>) {
let Self { values, rx } = self;
(values, VectorSubscriberBatchedStream::new(ReusableBoxFuture::new(make_future(rx))))
Expand Down

0 comments on commit 4254403

Please sign in to comment.