about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2022-12-06 10:22:23 -0800
committerWill Crichton <wcrichto@cs.stanford.edu>2022-12-07 09:08:43 -0800
commitbcdab876c823ef4e66f88e2716bd13d7a42634dd (patch)
tree772ac678b8e192cba7cbddfba86dc66277754adb
parentae270f1b991ced071d93eab76219a0e3788b89ad (diff)
downloadrust-bcdab876c823ef4e66f88e2716bd13d7a42634dd.tar.gz
rust-bcdab876c823ef4e66f88e2716bd13d7a42634dd.zip
Fix es-check
-rw-r--r--src/librustdoc/html/static/js/scrape-examples.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/js/scrape-examples.js b/src/librustdoc/html/static/js/scrape-examples.js
index d179909ac7f..830b44d6bc0 100644
--- a/src/librustdoc/html/static/js/scrape-examples.js
+++ b/src/librustdoc/html/static/js/scrape-examples.js
@@ -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;