Re: [PATCH v2] rust: rbtree: document peek_next() on the immutable cursor

From: Juan Patricio Marchetto

Date: Fri Jul 31 2026 - 18:02:20 EST


On Wed, Jul 29, 2026 at 11:19 AM +0100, Gary Guo wrote:
> I am failing to see why this should be a type documentation.

I followed the existing pattern in the file: the only worked example of
peeking lives on the CursorMut type documentation, and Cursor's example
is on the type as well. But this example is specific to peek_next(), so
the method documentation is the more discoverable home for it. Moved
onto Cursor::peek_next() in v3.

Thanks,
Juan Patricio Marchetto