mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 23:06:23 +00:00
auto merge of #20865 : killercup/rust/patch-3, r=alexcrichton
This adds an early return to skip code blocks without IDs. Fixes #20864.
This commit is contained in:
commit
2127e0d56d
@ -14,6 +14,7 @@
|
||||
(function() {
|
||||
if (window.playgroundUrl) {
|
||||
$('pre.rust').hover(function() {
|
||||
if (!$(this).attr('id')) { return; }
|
||||
var id = '#' + $(this).attr('id').replace('rendered', 'raw');
|
||||
var a = $('<a>').text('⇱').attr('class', 'test-arrow');
|
||||
var code = $(id).text();
|
||||
|
Loading…
Reference in New Issue
Block a user