Re: [PATCH v2] rust: correct documentation comment for rbtree cursor peek_next method

From: Miguel Ojeda
Date: Sun Jan 04 2026 - 17:53:36 EST


On Fri, Nov 7, 2025 at 10:40 AM Hang Shu <m18080292938@xxxxxxx> wrote:
>
> The peek_next method's doc comment incorrectly stated it accesses the
> "previous" node when it actually accesses the next node. This commit
> fixes the documentation to accurately reflect the method's behavior.
>
> Fixes: 98c14e40e07a ("rust: rbtree: add cursor")
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Hang Shu <m18080292938@xxxxxxx>

Applied to `rust-fixes` -- thanks everyone!

[ Reworded slightly. - Miguel ]

I merged the tags from:

https://lore.kernel.org/rust-for-linux/JH0PR01MB55140AA42EB3AAF96EF7F3E8ECAEA@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/

Cheers,
Miguel