From ba996f4b01103174f3134c304a83da8b4d3acf88 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 14 Feb 2025 19:52:17 +0100 Subject: Fix outdated `id` mention in `Subscription` docs --- futures/src/subscription.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 Subscription { /// 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(data: D, builder: fn(&D) -> S) -> Self where D: Hash + 'static, -- cgit