Skip to content

Commit bcdab87

Browse files
committed
Fix es-check
1 parent ae270f1 commit bcdab87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/js/scrape-examples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// If the block is greater than the size of the viewer,
1818
// then scroll to the top of the block. Otherwise scroll
1919
// to the middle of the block.
20-
let maxLines = isHidden ? HIDDEN_MAX_LINES : DEFAULT_MAX_LINES;
20+
const maxLines = isHidden ? HIDDEN_MAX_LINES : DEFAULT_MAX_LINES;
2121
if (loc[1] - loc[0] > maxLines) {
2222
const line = Math.max(0, loc[0] - 1);
2323
scrollOffset = lines.children[line].offsetTop;

0 commit comments

Comments
 (0)