Skip to content

fix(#1656): update doc tests to use playground as the crate name #1934

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mautamu
Copy link
Contributor

@mautamu mautamu commented May 30, 2025

This updates the Documentation Testing (21.2) chapter to assume a crate name of playground instead of doccomments. This allows for the code contained within to be copy-pasted directly into play.rust-lang.org to run; anyone who would want to reproduce this locally would want to create a playground library.

Fixes #1656

@rustbot
Copy link
Collaborator

rustbot commented May 30, 2025

r? @marioidival

rustbot has assigned @marioidival.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@mautamu mautamu changed the title fix(#1904): update doc tests to use playground as the crate name fix(#1656): update doc tests to use playground as the crate name May 30, 2025
…e name

This updates the Documentation Testing (21.2) chapter to assume a crate
name of `playground` instead of `doccomments`. This allows for the code
contained within to be copy-pasted directly into play.rust-lang.org to
run; anyone who would want to reproduce this locally would want to
create a `playground` library.

Fixes rust-lang#1656.
@mautamu
Copy link
Contributor Author

mautamu commented May 30, 2025

Captured the wrong issue number originally, this is for 1656, not 1904.

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

Successfully merging this pull request may close these issues.

Doctesting examples don't work
3 participants