rust: rbtree: fix minor typos in comments
PATCH v2 1/1 rust: rbtree: fix minor typos in comments
This patch corrects a couple of typo errors in the documentation comments to improve clarity and readability.
Suggested-by Miguel Ojeda <[email protected]>
Signed-off-by Atharv Dubey <[email protected]>
---
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(-)
rust/kernel/rbtree.rs +2 -2
@@ -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 > {}
Signature · 1 line
2.43.0
Quoted 6 lines · Atharv Dubey
This patch corrects a couple of typo errors in the documentation comments to improve clarity and readability.
Suggested-by Miguel Ojeda <[email protected]>Signed-off-by Atharv Dubey <[email protected]>
Reviewed-by Alice Ryhl <[email protected]>
Miguel Ojeda
AppliedQuoted 7 lines · Atharv Dubey
This patch corrects a couple of typo errors in the documentation comments to improve clarity and readability.
Suggested-by Miguel Ojeda <[email protected]>Signed-off-by Atharv Dubey <[email protected]>
Applied to rust-fixes -- thanks everyone!
[ Removed one of the cases that is gone now. Reworded accordingly
(and to avoid mentioning 'documentation', since it is just a comment). - Miguel ]
Cheers,
Miguel