Skip to content

Commit

Permalink
doc(eyeball-im): Fix a typo in the doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Sep 18, 2024
1 parent 3c8fcb3 commit c209b82
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 c209b82

Please sign in to comment.