add a note to Vec's Extend<&T> impl about its slice specialization#43455
Merged
bors merged 1 commit intorust-lang:masterfrom Jul 26, 2017
Merged
add a note to Vec's Extend<&T> impl about its slice specialization#43455bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
Contributor
Author
|
r? @rust-lang/docs |
Member
|
I don't think highfive understands teams yet, sooooo |
Contributor
Author
|
@carols10cents Yeah, it was mainly to just ping the team as a whole, and stick it on whoever checked their email first |
src/liballoc/vec.rs
Outdated
Member
There was a problem hiding this comment.
Missing url for copy_from_slice.
Contributor
|
r=me after said URL is added |
6d6808a to
6e36769
Compare
Contributor
Author
|
Updated. I ran linkchecker locally and it worked just fine, but i'll wait for travis all the same. |
Contributor
Author
|
@bors r=steveklabnik rollup |
Collaborator
|
📌 Commit 6e36769 has been approved by |
Mark-Simulacrum
added a commit
to Mark-Simulacrum/rust
that referenced
this pull request
Jul 26, 2017
…=steveklabnik add a note to Vec's Extend<&T> impl about its slice specialization From the regular documentation view, it's not at all apparent that [this specialization](https://github.com/rust-lang/rust/blob/5669c9988f50788b5ab5dee2d4538519d4e5663d/src/liballoc/vec.rs#L1879-L1891) exists for `slice::Iter`. This adds a documentation blurb to the Extend impl itself to note that this optimization exists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the regular documentation view, it's not at all apparent that this specialization exists for
slice::Iter. This adds a documentation blurb to the Extend impl itself to note that this optimization exists.