diff options
-rw-r--r-- | futures/src/subscription.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs index 82cba9a1..3577d19f 100644 --- a/futures/src/subscription.rs +++ b/futures/src/subscription.rs @@ -210,7 +210,8 @@ impl<T> Subscription<T> { /// Returns a [`Subscription`] that will create and asynchronously run the /// given [`Stream`]. /// - /// The `id` will be used to uniquely identify the [`Subscription`]. + /// Both the `data` and the function pointer will be used to uniquely identify + /// the [`Subscription`]. pub fn run_with<D, S>(data: D, builder: fn(&D) -> S) -> Self where D: Hash + 'static, |