Skip to content

Commit 8be26a2

Browse files
Fix collapse toggle insertions on impl with docs
1 parent 14ac1b5 commit 8be26a2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustdoc/html/static/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,9 @@
18161816

18171817
var func = function(e) {
18181818
var next = e.nextElementSibling;
1819+
if (hasClass(e, 'impl') && next && hasClass(next, 'docblock')) {
1820+
next = next.nextElementSibling;
1821+
}
18191822
if (!next) {
18201823
return;
18211824
}

0 commit comments

Comments
 (0)