diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 00ca78b749e..85ab0855f05 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -2105,7 +2105,7 @@ if (!DOMTokenList.prototype.remove) { } var toggle = createSimpleToggle(false); - var hideMethodDocs = getCurrentValue("rustdoc-method-docs") !== "false"; + var hideMethodDocs = getCurrentValue("rustdoc-method-docs") === "true"; var pageId = getPageId(); var func = function(e) {