mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
runtime: fix typo in task state doc (#3835)
This commit is contained in:
@@ -55,7 +55,7 @@ const REF_ONE: usize = 1 << REF_COUNT_SHIFT;
|
|||||||
/// State a task is initialized with
|
/// State a task is initialized with
|
||||||
///
|
///
|
||||||
/// A task is initialized with two references: one for the scheduler and one for
|
/// 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
|
/// set. A new task is immediately pushed into the run queue for execution and
|
||||||
/// starts with the `NOTIFIED` flag set.
|
/// starts with the `NOTIFIED` flag set.
|
||||||
const INITIAL_STATE: usize = (REF_ONE * 2) | JOIN_INTEREST | NOTIFIED;
|
const INITIAL_STATE: usize = (REF_ONE * 2) | JOIN_INTEREST | NOTIFIED;
|
||||||
@@ -67,7 +67,7 @@ impl State {
|
|||||||
pub(super) fn new() -> State {
|
pub(super) fn new() -> State {
|
||||||
// A task is initialized with three references: one for the scheduler,
|
// A task is initialized with three references: one for the scheduler,
|
||||||
// one for the `JoinHandle`, one for the task handle made available in
|
// 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
|
// set. A new task is immediately pushed into the run queue for
|
||||||
// execution and starts with the `NOTIFIED` flag set.
|
// execution and starts with the `NOTIFIED` flag set.
|
||||||
State {
|
State {
|
||||||
|
|||||||
Reference in New Issue
Block a user