Skip to content

Commit b8bddb0

Browse files
committed
rustdoc: Add more types to the sidebar
They're displayed in the same order as they are on modules pages.
1 parent 3313e50 commit b8bddb0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustdoc/html/static/main.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -884,12 +884,16 @@
884884
sidebar.append(div);
885885
}
886886

887+
block("primitive", "Primitive Types");
887888
block("mod", "Modules");
889+
block("macro", "Macros");
888890
block("struct", "Structs");
889891
block("enum", "Enums");
892+
block("constant", "Constants");
893+
block("static", "Statics");
890894
block("trait", "Traits");
891895
block("fn", "Functions");
892-
block("macro", "Macros");
896+
block("type", "Type Definitions");
893897
}
894898

895899
window.initSidebarItems = initSidebarItems;

0 commit comments

Comments
 (0)