Skip to content

Fix a minor mistake in String::try_reserve_exact examples #92388

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 5, 2022
Merged

Fix a minor mistake in String::try_reserve_exact examples #92388

merged 1 commit into from
Jan 5, 2022

Conversation

SpriteOvO
Copy link
Contributor

The examples of String::try_reserve_exact didn't actually use try_reserve_exact, which was probably a minor mistake, and this PR fixed it.

@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 @Mark-Simulacrum (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 Dec 29, 2021
@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jan 5, 2022

📌 Commit a877b64 has been approved by Mark-Simulacrum

@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 Jan 5, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 5, 2022
…askrgr

Rollup of 7 pull requests

Successful merges:

 - rust-lang#92092 (Drop guards in slice sorting derive src pointers from &mut T, which is invalidated by interior mutation in comparison)
 - rust-lang#92388 (Fix a minor mistake in `String::try_reserve_exact` examples)
 - rust-lang#92442 (Add negative `impl` for `Ord`, `PartialOrd` on `LocalDefId`)
 - rust-lang#92483 (Stabilize `result_cloned` and `result_copied`)
 - rust-lang#92574 (Add RISC-V detection macro and more architecture instructions)
 - rust-lang#92575 (ast: Always keep a `NodeId` in `ast::Crate`)
 - rust-lang#92583 (:arrow_up: rust-analyzer)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 84e48a4 into rust-lang:master Jan 5, 2022
@rustbot rustbot added this to the 1.59.0 milestone Jan 5, 2022
# for free to join this conversation on GitHub. Already have an account? # 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.

5 participants