Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Rename elem_offset to element_offset #132830

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

wr7
Copy link
Contributor

@wr7 wr7 commented Nov 9, 2024

Tracking issue: #126769

Renames slice::elem_offset to slice::element_offset and improves the documentation of it and its related methods.

The current documentation can be misinterpreted (as explained here).

@rustbot
Copy link
Collaborator

rustbot commented Nov 9, 2024

r? @joboet

rustbot has assigned @joboet.
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

@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 Nov 9, 2024
@joboet
Copy link
Member

joboet commented Nov 11, 2024

I'm not the appropriate reviewer for this, but am strongly in favour of this change.
r? libs-api

@rustbot rustbot added the T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. label Nov 11, 2024
@rustbot rustbot assigned joshtriplett and unassigned joboet Nov 11, 2024
@tgross35
Copy link
Contributor

It seems unlikely that anyone to have a problem with this change given it is more consistent. libs-api will review the names anyway once this is closer to stabilization, so I think we may as well move this forward.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Dec 19, 2024

📌 Commit 3c8bfb7 has been approved by tgross35

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 19, 2024
@tgross35 tgross35 assigned tgross35 and unassigned joshtriplett Dec 19, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 20, 2024
Rollup of 6 pull requests

Successful merges:

 - rust-lang#126118 (docs: Mention `spare_capacity_mut()` in `Vec::set_len`)
 - rust-lang#132830 (Rename `elem_offset` to `element_offset`)
 - rust-lang#133103 (Pass FnAbi to find_mir_or_eval_fn)
 - rust-lang#134321 (Hide `= _` as associated constant value inside impl blocks)
 - rust-lang#134518 (fix typos in the example code in the doc comments of `Ipv4Addr::from_bits()`, `Ipv6Addr::from_bits()` & `Ipv6Addr::to_bits()`)
 - rust-lang#134521 (Arbitrary self types v2: roll loop.)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 1ec6d09 into rust-lang:master Dec 20, 2024
6 checks passed
@rustbot rustbot added this to the 1.85.0 milestone Dec 20, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 20, 2024
Rollup merge of rust-lang#132830 - wr7:substr_range_documentation, r=tgross35

Rename `elem_offset` to `element_offset`

Tracking issue: rust-lang#126769

Renames `slice::elem_offset` to `slice::element_offset` and improves the documentation of it and its related methods.

The current documentation can be misinterpreted (as explained [here](rust-lang#126769 (comment))).
@wr7 wr7 deleted the substr_range_documentation branch December 23, 2024 00:52
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. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants