Skip to content

Commit 2127e0d

Browse files
committed
auto merge of #20865 : killercup/rust/patch-3, r=alexcrichton
This adds an early return to skip code blocks without IDs. Fixes #20864.
2 parents 9d2e9b9 + 89ca858 commit 2127e0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustdoc/html/static/playpen.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
(function() {
1515
if (window.playgroundUrl) {
1616
$('pre.rust').hover(function() {
17+
if (!$(this).attr('id')) { return; }
1718
var id = '#' + $(this).attr('id').replace('rendered', 'raw');
1819
var a = $('<a>').text('⇱').attr('class', 'test-arrow');
1920
var code = $(id).text();

0 commit comments

Comments
 (0)