Skip to content

Commit

Permalink
rust: fix English typos found by checkpatch.pl
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
  • Loading branch information
ojeda committed Aug 1, 2022
1 parent c082e83 commit e800a0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rust/kernel/workqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
/// ```
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rust/macros/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion rust/macros/vtable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e800a0f

Please sign in to comment.