]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: rbtree: fix minor typo in comment
authorAtharv Dubey <atharvd440@gmail.com>
Mon, 1 Dec 2025 16:56:01 +0000 (22:26 +0530)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 4 Jan 2026 22:51:35 +0000 (23:51 +0100)
Fix a typo in a comment 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>
Link: https://patch.msgid.link/20251201165601.31484-1-atharvd440@gmail.com
[ Removed one of the cases that is gone now. Reworded accordingly
  (and to avoid mentioning 'documentation', since it is just
  a comment). - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/rbtree.rs

index 4729eb56827a12d7c7dc1dd49157619ea8b07e50..6c3dbb2e6f0d34330bf7691bf9ebae792218d6da 100644 (file)
@@ -1130,7 +1130,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> {}