[PATCH] rust: rbtree: fix minor typos in comments

Atharv Dubey posted 1 patch 4 hours ago
There is a newer version of this series
rust/kernel/rbtree.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] rust: rbtree: fix minor typos in comments
Posted by Atharv Dubey 4 hours ago
This patch corrects a few small grammatical errors in the
documentation comments to improve clarity and readability.

Link: https://github.com/Rust-for-Linux/linux/issues/1206
Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
---
 rust/kernel/rbtree.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust/kernel/rbtree.rs b/rust/kernel/rbtree.rs
index b8fe6be6fcc4..6c9708201fd7 100644
--- a/rust/kernel/rbtree.rs
+++ b/rust/kernel/rbtree.rs
@@ -732,7 +732,7 @@ pub struct Cursor<'a, K, V> {
 }
 
 // SAFETY: The [`Cursor`] has exclusive access to both `K` and `V`, so it is sufficient to require them to be `Send`.
-// The cursor only gives out immutable references to the keys, but since it has excusive access to those same
+// The cursor only gives out immutable references to the keys, but since it has exclusive access to those same
 // keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user.
 unsafe impl<'a, K: Send, V: Send> Send for Cursor<'a, K, V> {}
 
@@ -980,7 +980,7 @@ pub struct IterMut<'a, K, V> {
 }
 
 // SAFETY: The [`IterMut`] has exclusive access to both `K` and `V`, so it is sufficient to require them to be `Send`.
-// The iterator only gives out immutable references to the keys, but since the iterator has excusive access to those same
+// The iterator only gives out immutable references to the keys, but since the iterator has exclusive access to those same
 // keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user.
 unsafe impl<'a, K: Send, V: Send> Send for IterMut<'a, K, V> {}
 
-- 
2.43.0
Re: [PATCH] rust: rbtree: fix minor typos in comments
Posted by Miguel Ojeda 4 hours ago
On Mon, Dec 1, 2025 at 5:07 PM Atharv Dubey <atharvd440@gmail.com> wrote:
>
> This patch corrects a few small grammatical errors in the

s/few/couple?

It is also not a grammatical error, no? i.e. it is just a typo within a word.

> Link: https://github.com/Rust-for-Linux/linux/issues/1206

Thanks for doing these; however, since you already did other "good
first issues", please do not do more to let others pick them up :)

It is why I typically write "...to use it as a test to submit your
first patch to the kernel." in the issue text.

We can take this one since you did it already anyway. Please add the
Suggested-by tag as well.

Thanks!

Cheers,
Miguel
Re: [PATCH] rust: rbtree: fix minor typos in comments
Posted by Atharv Dubey 3 hours ago
On Mon, Dec 01, 2025 at 05:12:33PM +0100, Miguel Ojeda wrote:
> On Mon, Dec 1, 2025 at 5:07 PM Atharv Dubey <atharvd440@gmail.com> wrote:
> >
> > This patch corrects a few small grammatical errors in the
> 
> s/few/couple?
> 
> It is also not a grammatical error, no? i.e. it is just a typo within a word.
> Thanks for the feedback !, I'll update the commit message according to
> your suggestion. 
> > Link: https://github.com/Rust-for-Linux/linux/issues/1206
> 
> Thanks for doing these; however, since you already did other "good
> first issues", please do not do more to let others pick them up :)
> 
> It is why I typically write "...to use it as a test to submit your
> first patch to the kernel." in the issue text.
> 
> We can take this one since you did it already anyway. Please add the
> Suggested-by tag as well.
>  Got it, will keep this in mind for future contributions. 
> Thanks!
> 
> Cheers,
> Miguel