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

Incorrect URL redirection in the doc of BTreeMap #53338

Closed
luojia65 opened this issue Aug 14, 2018 · 2 comments
Closed

Incorrect URL redirection in the doc of BTreeMap #53338

luojia65 opened this issue Aug 14, 2018 · 2 comments

Comments

@luojia65
Copy link
Contributor

luojia65 commented Aug 14, 2018

When I open the doc for std::collections::btree_map::BTreeMap, I found a hyperlink referring to BTreeMap on the second line, which incorrectly redirect to:

https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeMap.html

instead of one of the following:

https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html
https://doc.rust-lang.org/std/collections/struct.BTreeMap.html

thus caused an HTTP 404 error.

Looking into the source code, I found out that this hyperlink redirects to struct.BTreeMap.html. This could work for the type aliases of BTreeSet as std::collections::BTreeSet, for the reason that struct.BTreeSet.html and struct.BTreeMap.html are together in the same path, but does not work for std::collections::btree_set::BTreeSet as there isn't a BTreeMap in std::collections::btree_set.

Additionally, there is also an incorrect redirection on std::colletions::hash_set::HashSet where there is a hyperlink for struct HashMap which does not exist in std::collections::hash_set.

The rust version for doc.rust-lang.org is Version 1.28.0 (9634041f0 2018-07-30).

@luojia65 luojia65 changed the title Incorrect URL on the doc of BTreeMap Incorrect URL redirection in the doc of BTreeMap Aug 14, 2018
@ollie27
Copy link
Member

ollie27 commented Aug 14, 2018

This is a duplicate of #32130.

@luojia65
Copy link
Contributor Author

luojia65 commented Aug 15, 2018

(Closing this because of duplication)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants