You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, http://doc.rust-lang.org/std/cell/index.html, when I click the top right arrow of the first code snippet, there are not only code from this snippet, but also the following snippets, one followed the other.
The text was updated successfully, but these errors were encountered:
kmcallister
changed the title
Different code snippets from the same doc string mixed up in playgen.
Different code snippets from the same doc string mixed up in playpen
Feb 21, 2015
Looks like this line of JavaScript selects to much code when building the code for the playpen link. I guess it should be prev instead of siblings. I'll look into writing a short PR.
killercup
added a commit
to killercup/rust
that referenced
this issue
Mar 5, 2015
This should fixrust-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).
This should fixrust-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).
For example, http://doc.rust-lang.org/std/cell/index.html, when I click the top right arrow of the first code snippet, there are not only code from this snippet, but also the following snippets, one followed the other.
The text was updated successfully, but these errors were encountered: