Skip to content

Change the placement of two functions. #63045

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

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Change the placement of two functions. #63045

merged 1 commit into from
Aug 19, 2019

Conversation

tomasz-rozanski
Copy link
Contributor

Right now, the order is as follows:
pop_front()
push_front()
push_back()
pop_back()

swap_remove_back()
swap_remove_front()

I believe it would be more natural, and easier to follow, if we place pop_back() right after the pop_front(), and swap_remove_back() after the swap_remove_front() like this:
pop_front()
pop_back()
push_front()
push_back()

swap_remove_front()
swap_remove_back()

The rest of the documentation (at least in this module) adheres to the same logic, where the 'front' function always precedes its 'back' equivalent.

@rust-highfive
Copy link
Contributor

r? @aidanhs

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 27, 2019
Right now, the order is as follows:
`pop_front()`
`push_front()`
`push_back()`
`pop_back()`

`swap_remove_back()`
`swap_remove_front()`

I believe it would be more natural, and easier to follow, if we place `pop_back()` right after the `pop_front()`, and `swap_remove_back()` after the `swap_remove_front()` like this:
`pop_front()`
`pop_back()`
`push_front()`
`push_back()`

`swap_remove_front()`
`swap_remove_back()`

The rest of the documentation (at least in this module) adheres to the same logic, where the 'front' function always precedes its 'back' equivalent.
@tomasz-rozanski tomasz-rozanski changed the title Change the placement of two function. Change the placement of two functions. Jul 27, 2019
@JohnTitor
Copy link
Member

Ping from triage: @aidanhs, waiting on your review.

@joelpalmer
Copy link

Ping from triage: @aidanhs, any update on the review?

@Centril
Copy link
Contributor

Centril commented Aug 18, 2019

r? @jonas-schievink

@jonas-schievink
Copy link
Contributor

Makes sense to me, thanks for the PR!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 18, 2019

📌 Commit 98c50eb has been approved by jonas-schievink

@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 Aug 18, 2019
@bors
Copy link
Collaborator

bors commented Aug 18, 2019

⌛ Testing commit 98c50eb with merge 0ccbae2...

bors added a commit that referenced this pull request Aug 18, 2019
Change the placement of two functions.

Right now, the order is as follows:
`pop_front()`
`push_front()`
`push_back()`
`pop_back()`

`swap_remove_back()`
`swap_remove_front()`

I believe it would be more natural, and easier to follow, if we place `pop_back()` right after the `pop_front()`, and `swap_remove_back()` after the `swap_remove_front()` like this:
`pop_front()`
`pop_back()`
`push_front()`
`push_back()`

`swap_remove_front()`
`swap_remove_back()`

The rest of the documentation (at least in this module) adheres to the same logic, where the 'front' function always precedes its 'back' equivalent.
@bors
Copy link
Collaborator

bors commented Aug 19, 2019

☀️ Test successful - checks-azure
Approved by: jonas-schievink
Pushing 0ccbae2 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 19, 2019
@bors bors merged commit 98c50eb into rust-lang:master Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

8 participants