Skip to content

Copy should copy a usable full name of the item #140888

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
ultimaweapon opened this issue May 10, 2025 · 1 comment
Closed

Copy should copy a usable full name of the item #140888

ultimaweapon opened this issue May 10, 2025 · 1 comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@ultimaweapon
Copy link

Location

All page for any item (e.g. https://doc.rust-lang.org/std/fs/fn.read_dir.html).

Summary

When clicking on the copy button next to the item name the copied name is not usable in the code. The result when copied the name of https://doc.rust-lang.org/std/fs/fn.read_dir.html is:

std::fs - Rust::read_dir

Which does not useful. The copied text should be:

std::fs::read_dir
@ultimaweapon ultimaweapon added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label May 10, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label May 10, 2025
@Urgau Urgau closed this as completed May 10, 2025
@Urgau Urgau added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels May 10, 2025
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 C-bug Category: This is a bug. 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

4 participants
@ultimaweapon @Urgau @rustbot and others