diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 57c8d5bff767..881b27a5d618 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -344,6 +344,7 @@ function defocusSearchBar() {
}
function getHelpElement() {
+ buildHelperPopup();
return document.getElementById("help");
}
@@ -2807,8 +2808,8 @@ function defocusSearchBar() {
var infos = [
"Prefix searches with a type followed by a colon (e.g., fn:) to \
- restrict the search to a given type.",
- "Accepted types are: fn, mod, struct, \
+ restrict the search to a given item kind.",
+ "Accepted kinds are: fn, mod, struct, \
enum, trait, type, macro, \
and const.",
"Search functions by type signature (e.g., vec -> usize or \
@@ -2828,12 +2829,12 @@ function defocusSearchBar() {
popup.appendChild(container);
insertAfter(popup, getSearchElement());
+ // So that it's only built once and then it'll do nothing when called!
+ buildHelperPopup = function() {};
}
onHashChange(null);
window.onhashchange = onHashChange;
-
- buildHelperPopup();
}());
// This is required in firefox. Explanations: when going back in the history, firefox doesn't re-run