Skip to content

Commit d101fea

Browse files
authored
runtime: fix typo in task state doc (#3835)
1 parent 9d8b37d commit d101fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio/src/runtime/task/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const REF_ONE: usize = 1 << REF_COUNT_SHIFT;
5555
/// State a task is initialized with
5656
///
5757
/// A task is initialized with two references: one for the scheduler and one for
58-
/// the `JoinHandle`. As the task starts with a `JoinHandle`, `JOIN_INTERST` is
58+
/// the `JoinHandle`. As the task starts with a `JoinHandle`, `JOIN_INTEREST` is
5959
/// set. A new task is immediately pushed into the run queue for execution and
6060
/// starts with the `NOTIFIED` flag set.
6161
const INITIAL_STATE: usize = (REF_ONE * 2) | JOIN_INTEREST | NOTIFIED;
@@ -67,7 +67,7 @@ impl State {
6767
pub(super) fn new() -> State {
6868
// A task is initialized with three references: one for the scheduler,
6969
// one for the `JoinHandle`, one for the task handle made available in
70-
// release. As the task starts with a `JoinHandle`, `JOIN_INTERST` is
70+
// release. As the task starts with a `JoinHandle`, `JOIN_INTEREST` is
7171
// set. A new task is immediately pushed into the run queue for
7272
// execution and starts with the `NOTIFIED` flag set.
7373
State {

0 commit comments

Comments
 (0)