From 62e16e5b1376158a1fc013fa8b1a2830bf4bb78f Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Tue, 30 Sep 2025 22:34:47 +0200 Subject: [PATCH] Fix typos --- Cargo.toml | 2 +- README.md | 2 +- src/header.rs | 2 +- src/lib.rs | 2 +- src/raw.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7779a6a..3073d84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,6 @@ once_cell = "1" pin-project-lite = "0.2.10" smol = "2" -# rewrite dependencies to use the this version of async-task when running tests +# rewrite dependencies to use this version of async-task when running tests [patch.crates-io] async-task = { path = "." } diff --git a/README.md b/README.md index 44f9f2d..d146936 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ let (sender, receiver) = flume::unbounded(); ``` A task is created using either `spawn()`, `spawn_local()`, or `spawn_unchecked()` which -return a `Runnable` and a `Task`: +returns a `Runnable` and a `Task`: ```rust // A future that will be spawned. diff --git a/src/header.rs b/src/header.rs index cf74471..cc42c5a 100644 --- a/src/header.rs +++ b/src/header.rs @@ -15,7 +15,7 @@ use crate::utils::abort_on_panic; /// Actions to take upon calling [`Header::drop_waker`]. pub(crate) enum DropWakerAction { - /// Re-schedule the task + /// Re-schedule the task. Schedule, /// Destroy the task. Destroy, diff --git a/src/lib.rs b/src/lib.rs index 2f97ae1..290a749 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ //! ``` //! //! A task is created using either [`spawn()`], [`spawn_local()`], or [`spawn_unchecked()`] which -//! return a [`Runnable`] and a [`Task`]: +//! returns a [`Runnable`] and a [`Task`]: //! //! ``` //! # let (sender, receiver) = flume::unbounded(); diff --git a/src/raw.rs b/src/raw.rs index 2994332..89dd16d 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -110,7 +110,7 @@ impl RawTask { let align_union = max(layout_f.align(), layout_r.align()); let layout_union = Layout::from_size_align(size_union, align_union); - // Compute the layout for `Header` followed `S` and `union { F, T }`. + // Compute the layout for `Header` followed by `S` and `union { F, T }`. let layout = layout_header; let (layout, offset_s) = leap_unwrap!(layout.extend(layout_s)); let (layout, offset_union) = leap_unwrap!(layout.extend(layout_union));