Skip to content

Commit e800a0f

Browse files
committed
rust: fix English typos found by checkpatch.pl
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent c082e83 commit e800a0f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rust/kernel/workqueue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ macro_rules! init_work_item_adapter {
129129
/// ```
130130
///
131131
/// The following example is used to create a work item and enqueue it several times. We note that
132-
/// enqueing while the work item is already queued is a no-op, so we enqueue it when it is not
132+
/// enqueuing while the work item is already queued is a no-op, so we enqueue it when it is not
133133
/// enqueued yet.
134134
///
135135
/// ```
@@ -420,7 +420,7 @@ impl BoxedQueue {
420420
///
421421
/// # Safety
422422
///
423-
/// `ptr` must be non-null and valid. Additionaly, ownership must be handed over to new
423+
/// `ptr` must be non-null and valid. Additionally, ownership must be handed over to new
424424
/// instance of [`BoxedQueue`].
425425
unsafe fn new(ptr: *mut bindings::workqueue_struct) -> Self {
426426
Self {

rust/macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn module(ts: TokenStream) -> TokenStream {
106106
/// This attribute is intended to close the gap. Traits can be declared and
107107
/// implemented with the `#[vtable]` attribute, and a `HAS_*` associated constant
108108
/// will be generated for each method in the trait, indicating if the implementor
109-
/// has overriden a method.
109+
/// has overridden a method.
110110
///
111111
/// This attribute is not needed if all methods are required.
112112
///

rust/macros/vtable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub(crate) fn vtable(_attr: TokenStream, ts: TokenStream) -> TokenStream {
6666
// so we have to generate a const for all methods.
6767
write!(
6868
const_items,
69-
"/// Indicates if the `{f}` method is overriden by the implementor.
69+
"/// Indicates if the `{f}` method is overridden by the implementor.
7070
const {gen_const_name}: bool = false;",
7171
)
7272
.unwrap();

0 commit comments

Comments
 (0)