Skip to content

Rustdoc search for "slice" should have primitive as top result #25167

Closed
@ucarion

Description

@ucarion

When browsing documentation and searching for "slice", the top three results are:

  1. std::slice the module
  2. std::raw::Slice the struct representation
  3. std::slice the primitive

I think std::slice-the-primitive should be the top result (it is currently the third result), because it tells me what I can do to a slice, which is usually what I'm wondering about when I search for "slice". std::slice-the-module gives meager documentation, and links to structs, which I'm comparatively rarely interested in.

/cc @steveklabnik since you're the documentation guy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions