We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 847bb37 + 47c9cc4 commit f7105bfCopy full SHA for f7105bf
src/librustdoc/html/static/main.js
@@ -708,7 +708,7 @@
708
var code = $('<code>').append(structs[j]);
709
$.each(code.find('a'), function(idx, a) {
710
var href = $(a).attr('href');
711
- if (href && !href.startsWith('http')) {
+ if (href && href.indexOf('http') !== 0) {
712
$(a).attr('href', rootPath + href);
713
}
714
});
0 commit comments