diff --git a/tokio/src/runtime/scheduler/current_thread/mod.rs b/tokio/src/runtime/scheduler/current_thread/mod.rs index bdf15f6ed5d..305f9a5d074 100644 --- a/tokio/src/runtime/scheduler/current_thread/mod.rs +++ b/tokio/src/runtime/scheduler/current_thread/mod.rs @@ -499,7 +499,7 @@ impl Handle { F: crate::future::Future + 'static, F::Output: 'static, { - // Safety: the caller guarantees that the this is only called on a `LocalRuntime`. + // Safety: the caller guarantees that this is only called on a `LocalRuntime`. let (handle, notified) = unsafe { me.shared .owned diff --git a/tokio/src/task/builder.rs b/tokio/src/task/builder.rs index 467a700646e..c253e853e97 100644 --- a/tokio/src/task/builder.rs +++ b/tokio/src/task/builder.rs @@ -20,7 +20,7 @@ use std::{future::Future, io, mem}; /// the task /// /// There are three types of task that can be spawned from a Builder: -/// - [`spawn_local`] for executing futures on the current thread +/// - [`spawn_local`] for executing not [`Send`] futures /// - [`spawn`] for executing [`Send`] futures on the runtime /// - [`spawn_blocking`] for executing blocking code in the /// blocking thread pool. @@ -118,7 +118,7 @@ impl<'a> Builder<'a> { }) } - /// Spawns `!Send` a task on the current [`LocalSet`] or [`LocalRuntime`] with + /// Spawns a `!Send` task on the current [`LocalSet`] or [`LocalRuntime`] with /// this builder's settings. /// /// The spawned future will be run on the same thread that called `spawn_local`.