Skip to content

Fix Playpen Links Containing Multiple Examples #23082

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

Merged
merged 1 commit into from
Mar 7, 2015

Conversation

killercup
Copy link
Member

This should fix #22615. Previously, the playpen links grabbed the content of all .rusttest containers on the same level to build the URL. Now they just select the one before the pre they are shown in.

I have only tested this by changing the file in my local build of the docs (not by running rustdoc itself).

@rust-highfive
Copy link
Contributor

r? @pcwalton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 1eb37bf rollup

Thanks!

@alexcrichton alexcrichton assigned alexcrichton and unassigned pcwalton Mar 5, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 6, 2015
 This should fix rust-lang#22615. Previously, the playpen links grabbed the content of all `.rusttest` containers on the same level to build the URL. Now they just select the one before the `pre` they are shown in.

I have only tested this by changing the file in my local build of the docs (not by running rustdoc itself).
Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 6, 2015
 This should fix rust-lang#22615. Previously, the playpen links grabbed the content of all `.rusttest` containers on the same level to build the URL. Now they just select the one before the `pre` they are shown in.

I have only tested this by changing the file in my local build of the docs (not by running rustdoc itself).
@bors bors merged commit 1eb37bf into rust-lang:master Mar 7, 2015
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.

Different code snippets from the same doc string mixed up in playpen
5 participants