Skip to content

Conversation

gurry
Copy link
Contributor

@gurry gurry commented Dec 28, 2023

On a cursory read it's easy to miss that the limit is in terms of bytes not no. of elements. The italics should help with that.

Fixes #119149

@rustbot
Copy link
Collaborator

rustbot commented Dec 28, 2023

r? @cuviper

(rustbot has picked a reviewer for you, use r? to override)

@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 Dec 28, 2023
@bsilver8192
Copy link

LGTM. I think this would've caught my attention before filing the issue in question.

because on a cursory read it's easy to miss that the limit is
in terms of bytes not no. of elements. The italics should help
with that.
@gurry gurry force-pushed the 119149-improve-vec-docs branch from ab3117e to e3aca01 Compare December 29, 2023 04:25
@cuviper
Copy link
Member

cuviper commented Dec 29, 2023

Sounds good!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 29, 2023

📌 Commit e3aca01 has been approved by cuviper

It is now in the queue for this repository.

@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 Dec 29, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 30, 2023
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#119322 (Couple of random coroutine pass simplifications)
 - rust-lang#119374 (Italicise "bytes" in the docs of some `Vec` methods)
 - rust-lang#119388 (rustc_lint: Prevent triplication of various lints)
 - rust-lang#119406 (Add non-regression test for ATPIT ICE rust-lang#114325)
 - rust-lang#119410 (Rename test to be more descriptive)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit ef55e75 into rust-lang:master Dec 30, 2023
@rustbot rustbot added this to the 1.77.0 milestone Dec 30, 2023
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 30, 2023
Rollup merge of rust-lang#119374 - gurry:119149-improve-vec-docs, r=cuviper

Italicise "bytes" in the docs of some `Vec` methods

On a cursory read it's easy to miss that the limit is in terms of bytes not no. of elements. The italics should help with that.

Fixes rust-lang#119149
@gurry gurry deleted the 119149-improve-vec-docs branch December 30, 2023 07:14
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. 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.

Vec::reserve() (etc) panic conditions don't apply to zero-sized or empty types
5 participants