rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] rust: rbtree: fix minor typos in comments
@ 2025-12-01 16:56 Atharv Dubey
  2025-12-02  9:12 ` Alice Ryhl
  0 siblings, 1 reply; 2+ messages in thread
From: Atharv Dubey @ 2025-12-01 16:56 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Charalampos Mitrodimas, Yutaro Ohno,
	Onur Özkan, Atharv Dubey, Borys Tyran, Daniel Sedlak,
	Tamir Duberstein, rust-for-linux, linux-kernel

This patch corrects a couple of typo errors in the
documentation comments to improve clarity and readability.

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1206
Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
--- 
 Changes in v2:
 - Made Changes to the commit message as per the suggestion.
 - Added Suggested-by tag.

 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] rust: rbtree: fix minor typos in comments
  2025-12-01 16:56 [PATCH v2] rust: rbtree: fix minor typos in comments Atharv Dubey
@ 2025-12-02  9:12 ` Alice Ryhl
  0 siblings, 0 replies; 2+ messages in thread
From: Alice Ryhl @ 2025-12-02  9:12 UTC (permalink / raw)
  To: Atharv Dubey
  Cc: Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Trevor Gross, Danilo Krummrich, Charalampos Mitrodimas,
	Yutaro Ohno, Onur Özkan, Borys Tyran, Daniel Sedlak,
	Tamir Duberstein, rust-for-linux, linux-kernel

On Mon, Dec 01, 2025 at 10:26:01PM +0530, Atharv Dubey wrote:
> This patch corrects a couple of typo errors in the
> documentation comments to improve clarity and readability.
> 
> Suggested-by: Miguel Ojeda <ojeda@kernel.org>
> Link: https://github.com/Rust-for-Linux/linux/issues/1206
> Signed-off-by: Atharv Dubey <atharvd440@gmail.com>


Reviewed-by: Alice Ryhl <aliceryhl@google.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-02  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-01 16:56 [PATCH v2] rust: rbtree: fix minor typos in comments Atharv Dubey
2025-12-02  9:12 ` Alice Ryhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).