-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Improve some docs for VecDeque #40949
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
Conversation
src/libcollections/vec_deque.rs
Outdated
@@ -1073,7 +1073,7 @@ impl<T> VecDeque<T> { | |||
} | |||
} | |||
|
|||
/// Inserts an element first in the sequence. | |||
/// Prepends an element to the front of the `VecDeque`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preprend means inserting to the front, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For push_back
we have this sentence: Appends an element to the back of the VecDeque
.
I just mirrored that wording for push_front
. :) Do you have a better suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just "prepends an element to the VecDeque
".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@bors r+ rollup |
📌 Commit 1e2a61d has been approved by |
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
@rfcbot reviewed |
Improve some docs for VecDeque r? @GuillaumeGomez
Improve some docs for VecDeque r? @GuillaumeGomez
r? @GuillaumeGomez