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

From: Alice Ryhl

Date: Thu Nov 06 2025 - 06:32:18 EST


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

Thanks.

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>

This should probably have a fixes tag:

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

Alice