diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 8f7cd244c2f..e9a3cfd908e 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -39,6 +39,13 @@ "associatedconstant", "union"]; + // On the search screen, so you remain on the last tab you opened. + // + // 0 for "Types/modules" + // 1 for "As parameters" + // 2 for "As return value" + var currentTab = 0; + function hasClass(elem, className) { if (elem && className && elem.className) { var elemClass = elem.className; @@ -758,7 +765,7 @@ var output = ''; if (array.length > 0) { - output = `