Re: [PATCH v2] rust: rbtree: document peek_next() on the immutable cursor
Juan Patricio Marchetto <[email protected]> Fri, 31 Jul 2026 18:54:04 -0300
| Newsgroups | org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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