We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5940150 commit 616b101Copy full SHA for 616b101
src/librustdoc/html/static/main.js
@@ -587,9 +587,14 @@
587
} else if (item.parent !== undefined) {
588
var myparent = item.parent;
589
var anchor = '#' + type + '.' + name;
590
- displayPath = item.path + '::' + myparent.name + '::';
+ var parentType = itemTypes[myparent.ty];
591
+ if (parentType === "primitive") {
592
+ displayPath = myparent.name + '::';
593
+ } else {
594
+ displayPath = item.path + '::' + myparent.name + '::';
595
+ }
596
href = rootPath + item.path.replace(/::/g, '/') +
- '/' + itemTypes[myparent.ty] +
597
+ '/' + parentType +
598
'.' + myparent.name +
599
'.html' + anchor;
600
} else {
0 commit comments