We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db92b29 commit 906b61dCopy full SHA for 906b61d
src/librustdoc/html/static/js/main.js
@@ -1676,8 +1676,7 @@ function preLoadCss(cssUrl) {
1676
if (isHelpPage) {
1677
const help_section = document.createElement("section");
1678
help_section.appendChild(container);
1679
- // @ts-expect-error
1680
- document.getElementById("main-content").appendChild(help_section);
+ nonnull(document.getElementById("main-content")).appendChild(help_section);
1681
} else {
1682
onEachLazy(document.getElementsByClassName("help-menu"), menu => {
1683
if (menu.offsetWidth !== 0) {
0 commit comments