Skip to content

Commit

Permalink
Fix es-check
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Dec 7, 2022
1 parent ae270f1 commit bcdab87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/js/scrape-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// If the block is greater than the size of the viewer,
// then scroll to the top of the block. Otherwise scroll
// to the middle of the block.
let maxLines = isHidden ? HIDDEN_MAX_LINES : DEFAULT_MAX_LINES;
const maxLines = isHidden ? HIDDEN_MAX_LINES : DEFAULT_MAX_LINES;
if (loc[1] - loc[0] > maxLines) {
const line = Math.max(0, loc[0] - 1);
scrollOffset = lines.children[line].offsetTop;
Expand Down

0 comments on commit bcdab87

Please sign in to comment.