Fix outdated id mention in Subscription docs

This commit is contained in:
Héctor Ramón Jiménez 2025-02-14 19:52:17 +01:00
parent cc8b326dfc
commit ba996f4b01
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -210,7 +210,8 @@ impl<T> Subscription<T> {
/// Returns a [`Subscription`] that will create and asynchronously run the /// Returns a [`Subscription`] that will create and asynchronously run the
/// given [`Stream`]. /// 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 pub fn run_with<D, S>(data: D, builder: fn(&D) -> S) -> Self
where where
D: Hash + 'static, D: Hash + 'static,