Skip to content

Commit

Permalink
Fix reserve doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-consoli committed Mar 23, 2024
1 parent a6313c5 commit 6465651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/future/future_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ impl<F> FutureGroup<F> {
///
/// ```rust
/// use futures_concurrency::future::FutureGroup;
/// use std::future;
/// use std::future::Ready;
/// # futures_lite::future::block_on(async {
/// let mut group = FutureGroup::with_capacity(0);
/// let mut group: FutureGroup<Ready<usize>> = FutureGroup::with_capacity(0);
/// assert_eq!(group.capacity(), 0);
/// group.reserve(10);
/// assert_eq!(group.capacity(), 10);
Expand Down
6 changes: 3 additions & 3 deletions src/stream/stream_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ impl<S> StreamGroup<S> {
/// # Example
///
/// ```rust
/// use futures_concurrency::future::StreamGroup;
/// use std::future;
/// use futures_concurrency::stream::StreamGroup;
/// use futures_lite::stream::Once;
/// # futures_lite::future::block_on(async {
/// let mut group = StreamGroup::with_capacity(0);
/// let mut group: StreamGroup<Once<usize>> = StreamGroup::with_capacity(0);
/// assert_eq!(group.capacity(), 0);
/// group.reserve(10);
/// assert_eq!(group.capacity(), 10);
Expand Down

0 comments on commit 6465651

Please sign in to comment.