From 2769520afe33fcaf4a5fb219b0638315e1da6405 Mon Sep 17 00:00:00 2001 From: Noah Kennedy Date: Fri, 2 May 2025 16:30:42 -0500 Subject: [PATCH] fix docs --- tokio/src/runtime/task_hooks/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/task_hooks/mod.rs b/tokio/src/runtime/task_hooks/mod.rs index c54c27879..e2f943230 100644 --- a/tokio/src/runtime/task_hooks/mod.rs +++ b/tokio/src/runtime/task_hooks/mod.rs @@ -5,7 +5,7 @@ use std::ptr::NonNull; use std::sync::Arc; /// A factory which produces new [`TaskHookHarness`] objects for tasks which either have been -/// spawned in "detached mode" via the builder, or which were spawned from outside the runtime or +/// spawned in "detached mode" via [`tokio::task::spawn_with_hooks`], or which were spawned from outside the runtime or /// from another context where no [`TaskHookHarness`] was present. pub trait TaskHookHarnessFactory { /// Create a new [`TaskHookHarness`] object which the runtime will attach to a given task.