From e800a0fca49a55bc0aa637b3c292f9b1be0b0aa2 Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Tue, 26 Jul 2022 15:06:56 +0200 Subject: [PATCH] rust: fix English typos found by `checkpatch.pl` Signed-off-by: Miguel Ojeda --- rust/kernel/workqueue.rs | 4 ++-- rust/macros/lib.rs | 2 +- rust/macros/vtable.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/kernel/workqueue.rs b/rust/kernel/workqueue.rs index 78554aee53f036..68faa8e5f58b56 100644 --- a/rust/kernel/workqueue.rs +++ b/rust/kernel/workqueue.rs @@ -129,7 +129,7 @@ macro_rules! init_work_item_adapter { /// ``` /// /// The following example is used to create a work item and enqueue it several times. We note that -/// enqueing while the work item is already queued is a no-op, so we enqueue it when it is not +/// enqueuing while the work item is already queued is a no-op, so we enqueue it when it is not /// enqueued yet. /// /// ``` @@ -420,7 +420,7 @@ impl BoxedQueue { /// /// # Safety /// - /// `ptr` must be non-null and valid. Additionaly, ownership must be handed over to new + /// `ptr` must be non-null and valid. Additionally, ownership must be handed over to new /// instance of [`BoxedQueue`]. unsafe fn new(ptr: *mut bindings::workqueue_struct) -> Self { Self { diff --git a/rust/macros/lib.rs b/rust/macros/lib.rs index 4f1b44b23e7593..cf02b441619c61 100644 --- a/rust/macros/lib.rs +++ b/rust/macros/lib.rs @@ -106,7 +106,7 @@ pub fn module(ts: TokenStream) -> TokenStream { /// This attribute is intended to close the gap. Traits can be declared and /// implemented with the `#[vtable]` attribute, and a `HAS_*` associated constant /// will be generated for each method in the trait, indicating if the implementor -/// has overriden a method. +/// has overridden a method. /// /// This attribute is not needed if all methods are required. /// diff --git a/rust/macros/vtable.rs b/rust/macros/vtable.rs index 1ab64bade873e3..98340ea0af5fef 100644 --- a/rust/macros/vtable.rs +++ b/rust/macros/vtable.rs @@ -66,7 +66,7 @@ pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream { // so we have to generate a const for all methods. write!( const_items, - "/// Indicates if the `{f}` method is overriden by the implementor. + "/// Indicates if the `{f}` method is overridden by the implementor. const {gen_const_name}: bool = false;", ) .unwrap();