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

Mention Vec::into_boxed_slice in documentation of [T]::into_vec #42151

Merged
merged 2 commits into from
May 23, 2017

Conversation

Wallacoloo
Copy link
Contributor

This is a documentation fix.

Vec::into_boxed_slice and [T]::into_vec are inverses, so it makes sense to mention the other in their respective documentation for visibility. Vec::into_boxed_slice already mentions [T]::into_vec, but not the other way around until now.

Tagging @steveklabnik per his request.

`Vec::into_boxed_slice` and `[T]::into_vec` are inverses, so it makes sense
to mention the other in their respective documentation for visibility.
`Vec::into_boxed_slice` already mentions `[T]::into_vec`, but not the other
way around until now.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @BurntSushi (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@frewsxcv frewsxcv added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label May 22, 2017
@BurntSushi
Copy link
Member

This LGTM, but I'm throwing it to @steveklabnik since it sounds like you wanted to look at this?

/// The resulting vector can be converted back into a box via
/// the [`into_boxed_slice`] method.
///
/// [`into_boxed_slice`]: vec/struct.Vec.html#method.into_boxed_slice
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately, I have a feeling this link won't work because this method appears on both the slice and Vec doc pages. as is, the link works on the slice page, but on the vec page, it would end up linking to std/vec/vec/struct.Vec.html#method.into_vec. we'll find out soon whether this passes the linkchecker on Travis CI, but i'm guessing this link will probably need to be removed

@steveklabnik
Copy link
Member

This LGTM, but I'm throwing it to @steveklabnik since it sounds like you wanted to look at this?

They had just brought it up on IRC so I had mentioned it; I'd be happy with anyone else merging 😄

@frewsxcv is right though; we cannot make this link right now due to a rustdoc bug ☹️ at least we can have the text; @Wallacoloo would you mind removing the actual link please? Thanks.

@carols10cents carols10cents added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 22, 2017
The documentation for this method appears on multiple different pages,
which causes the relative links to not always work.
@Wallacoloo
Copy link
Contributor Author

I removed the link & Travis builds are passing. Let me know if anything more is needed.

@frewsxcv
Copy link
Member

thanks!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 23, 2017

📌 Commit 6e8e5c9 has been approved by frewsxcv

frewsxcv added a commit to frewsxcv/rust that referenced this pull request May 23, 2017
Mention Vec::into_boxed_slice in documentation of [T]::into_vec

This is a documentation fix.

`Vec::into_boxed_slice` and `[T]::into_vec` are inverses, so it makes sense to mention the other in their respective documentation for visibility. `Vec::into_boxed_slice` already mentions `[T]::into_vec`, but not the other way around until now.

Tagging @steveklabnik per his request.
bors added a commit that referenced this pull request May 23, 2017
Rollup of 8 pull requests

- Successful merges: #42016, #42122, #42144, #42145, #42151, #42152, #42160, #42163
- Failed merges:
@bors bors merged commit 6e8e5c9 into rust-lang:master May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants