Skip to content

rustdoc: Expandable function code snippets #21346

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
Qard opened this issue Jan 18, 2015 · 3 comments
Closed

rustdoc: Expandable function code snippets #21346

Qard opened this issue Jan 18, 2015 · 3 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Qard
Copy link

Qard commented Jan 18, 2015

Rather than just having the current [src] link at the top of the doc pages, it'd be nice to be able to have a [src] link for each function that expands with a code snippet of that particular function. Just like what the [-] and [+] buttons already do for the markdown comments.

It'd be a really helpful learning tool to be able to jump directly to the code you want to use and see what it's actually doing behind the scenes. It could also help people to get acquainted enough with the core code base to start making useful contributions. :)

@jdm jdm added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jan 18, 2015
@steveklabnik
Copy link
Member

Triage: no change

@birkenfeld
Copy link
Contributor

Duplicate of #12932.

@alexcrichton
Copy link
Member

Indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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