Skip to content

[rustdoc] Improve "Types/modules" label on the search results page #45787

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

Closed
Seeker14491 opened this issue Nov 5, 2017 · 4 comments
Closed
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Seeker14491
Copy link
Contributor

The first tab on the search results page is labeled "Types/modules", but the search results include items which are neither, such as functions and macros:

results for file

I suggest changing the label to something like "In name".

@kennytm kennytm added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-enhancement Category: An issue proposing an enhancement or a PR with one. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Nov 5, 2017
@JRegimbal
Copy link
Contributor

Maybe "As name" would be better to just match the other tabs?

@Seeker14491
Copy link
Contributor Author

The "As parameters" and "As return value" tabs only return results that match the whole search text exactly, while the first tab also returns items that partially match the search text. Because of this distinction, I prefer "in" over "as".

@JRegimbal
Copy link
Contributor

Ah my bad I didn't understand the difference between the name search and the parameter/return value searches.

@steveklabnik steveklabnik added T-dev-tools-rustdoc and removed A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Nov 21, 2017
bors added a commit that referenced this issue Dec 6, 2017
Change "Types/modules" title of search tab to be more accurate

From issue #45787. Used "In name" as per suggestion from @Seeker14491.
@QuietMisdreavus
Copy link
Member

Fixed in #45898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants