diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 93bf8d115b3..ad9557bf2c1 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -762,7 +762,7 @@
$(".method").each(function() {
if ($(this).next().is(".docblock")) {
- $(this).children().first().after(toggle[0]);
+ $(this).children().first().after(toggle.clone());
}
});