From d101feac504fea552a6c70537f22ccb7df8635e3 Mon Sep 17 00:00:00 2001 From: Tony Han Date: Sat, 5 Jun 2021 04:31:04 +0800 Subject: [PATCH] runtime: fix typo in task state doc (#3835) --- tokio/src/runtime/task/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/src/runtime/task/state.rs b/tokio/src/runtime/task/state.rs index 87bb02517bb..1f08d6d8782 100644 --- a/tokio/src/runtime/task/state.rs +++ b/tokio/src/runtime/task/state.rs @@ -55,7 +55,7 @@ const REF_ONE: usize = 1 << REF_COUNT_SHIFT; /// State a task is initialized with /// /// A task is initialized with two references: one for the scheduler and one for -/// the `JoinHandle`. As the task starts with a `JoinHandle`, `JOIN_INTERST` is +/// the `JoinHandle`. As the task starts with a `JoinHandle`, `JOIN_INTEREST` is /// set. A new task is immediately pushed into the run queue for execution and /// starts with the `NOTIFIED` flag set. const INITIAL_STATE: usize = (REF_ONE * 2) | JOIN_INTEREST | NOTIFIED; @@ -67,7 +67,7 @@ impl State { pub(super) fn new() -> State { // A task is initialized with three references: one for the scheduler, // one for the `JoinHandle`, one for the task handle made available in - // release. As the task starts with a `JoinHandle`, `JOIN_INTERST` is + // release. As the task starts with a `JoinHandle`, `JOIN_INTEREST` is // set. A new task is immediately pushed into the run queue for // execution and starts with the `NOTIFIED` flag set. State {