summaryrefslogtreecommitdiff
path: root/src/stream_map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_map.rs')
-rw-r--r--src/stream_map.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stream_map.rs b/src/stream_map.rs
index 7fc136f..9dc529a 100644
--- a/src/stream_map.rs
+++ b/src/stream_map.rs
@@ -364,11 +364,11 @@ impl<K, V> StreamMap<K, V> {
/// # Examples
///
/// ```
- /// use std::collections::HashMap;
+ /// use tokio_stream::{StreamMap, pending};
///
- /// let mut a = HashMap::new();
+ /// let mut a = StreamMap::new();
/// assert!(a.is_empty());
- /// a.insert(1, "a");
+ /// a.insert(1, pending::<i32>());
/// assert!(!a.is_empty());
/// ```
pub fn is_empty(&self) -> bool {