diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index c5cc04b9af555..3234889ca7cda 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -885,7 +885,7 @@ function hideThemeButtonState() {{
themePicker.style.borderBottomRightRadius = "0";
themePicker.style.borderBottomLeftRadius = "0";
}}
-
+
function switchThemeButtonState() {{
if (themes.style.display === "block") {{
showThemeButtonState();