Skip to content

Commit 600559b

Browse files
DoobyDoPapojeda
authored andcommitted
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: #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>
1 parent 9ace475 commit 600559b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/rbtree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ pub struct IterMut<'a, K, V> {
11301130
}
11311131

11321132
// 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
11341134
// keys, `Send` is sufficient. `Sync` would be okay, but it is more restrictive to the user.
11351135
unsafe impl<'a, K: Send, V: Send> Send for IterMut<'a, K, V> {}
11361136

0 commit comments

Comments
 (0)