Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: rbtree: fix minor typo in comment

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>

authored by

Atharv Dubey and committed by
Miguel Ojeda
600559b9 9ace4753

+1 -1
+1 -1
rust/kernel/rbtree.rs
··· 1130 1130 } 1131 1131 1132 1132 // SAFETY: The [`IterMut`] has exclusive access to both `K` and `V`, so it is sufficient to require them to be `Send`. 1133 - // The iterator only gives out immutable references to the keys, but since the iterator has excusive access to those same 1133 + // The iterator only gives out immutable references to the keys, but since the iterator has exclusive access to those same 1134 1134 // keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user. 1135 1135 unsafe impl<'a, K: Send, V: Send> Send for IterMut<'a, K, V> {} 1136 1136