Skip to content

Commit

Permalink
Fix collapse toggle insertions on impl with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 27, 2018
1 parent 14ac1b5 commit 8be26a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,9 @@

var func = function(e) {
var next = e.nextElementSibling;
if (hasClass(e, 'impl') && next && hasClass(next, 'docblock')) {
next = next.nextElementSibling;
}
if (!next) {
return;
}
Expand Down

0 comments on commit 8be26a2

Please sign in to comment.