Skip to content

Conversation

sheeponmeth
Copy link

Close issue like rust-lang/book#2574

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @dtolnay (or someone else) soon.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 15, 2022
@sheeponmeth sheeponmeth force-pushed the explanation-read_line branch from 6daa74a to 7da07ff Compare March 15, 2022 11:43
@Dylan-DPC
Copy link
Member

r? @Dylan-DPC

@rust-highfive rust-highfive assigned Dylan-DPC and unassigned dtolnay Mar 16, 2022
@Dylan-DPC
Copy link
Member

thanks

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Mar 16, 2022

📌 Commit 2c06c86 has been approved by Dylan-DPC

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 16, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 16, 2022
Rollup of 5 pull requests

Successful merges:

 - rust-lang#94868 (Format core and std macro rules, removing needless surrounding blocks)
 - rust-lang#94951 (Extend the irrefutable_let_patterns lint to let chains)
 - rust-lang#94955 (Refactor: Use `format_args_capture` in some parts of `rustc_parse`)
 - rust-lang#94957 (Improve the explanation about the behaviour of read_line)
 - rust-lang#94974 (Ensure that `let_else` does not interact with `let_chains`)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0732ea2 into rust-lang:master Mar 16, 2022
@rustbot rustbot added this to the 1.61.0 milestone Mar 16, 2022
Comment on lines +2113 to +2114
/// them to the provided buffer. You do not need to clear the buffer before
/// appending.
Copy link
Member

@m-ou-se m-ou-se Jun 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes it sound more confusing than before.

You do not need to clear the buffer before appending.

This could be interpreted as: you don't need to clear it, because it happens automatically.

Note that rust-lang/book#2574 is about the Rust Book, not about the standard library documentation. The std documentation before this change already clearly states that this function appends the data.

@sheeponmeth sheeponmeth deleted the explanation-read_line branch September 16, 2022 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants