Skip to content

Commit

Permalink
Fix Playpen Links Containing Multiple Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup committed Mar 5, 2015
1 parent 68740b4 commit 1eb37bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/playpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if (window.playgroundUrl) {
$('pre.rust').hover(function() {
var a = $('<a>').text('⇱').attr('class', 'test-arrow');
var code = $(this).siblings(".rusttest").text();
var code = $(this).prev(".rusttest").text();
a.attr('href', window.playgroundUrl + '?code=' +
encodeURIComponent(code));
a.attr('target', '_blank');
Expand Down

0 comments on commit 1eb37bf

Please sign in to comment.