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

Alice Ryhl
2025-11-06T11:32:18Z

On Thu, Nov 06, 2025 at 11:20:14AM +0000, Hang Shu wrote:
> From: Hang Shu <hangshu847@gmail.com>
>
> 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.
>
> Signed-off-by: Hang Shu <hangshu847@gmail.com>

Thanks.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>

This should probably have a fixes tag:

Fixes: 98c14e40e07a ("rust: rbtree: add cursor")

Alice