Skip to content

Conversation

@Sekar-C-Mca
Copy link

@Sekar-C-Mca Sekar-C-Mca commented Jan 2, 2026

Issue #149000

The previous documentation said 'via Read methods' which incorrectly implied that fill_buf consumes the data. This restores the historical clarification that read() can return the same contents as fill_buf, and emphasizes the relationship with consume().

This addresses the concerns raised in the issue where implementations like BufReader and Cursor do not actually consume data when fill_buf is called - subsequent read() calls can still read the same bytes until consume() is explicitly called.

The previous documentation said 'via Read methods' which incorrectly
implied that fill_buf consumes the data. This restores the historical
clarification that read() can return the same contents as fill_buf,
and emphasizes the relationship with consume().

This addresses the concerns raised in the issue where implementations
like BufReader and Cursor do not actually consume data when fill_buf
is called - subsequent read() calls can still read the same bytes
until consume() is explicitly called.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jan 2, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 2, 2026

r? @ChrisDenton

rustbot has assigned @ChrisDenton.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants