about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/scrape-examples.js
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-02 14:32:56 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-05-05 11:07:14 +0200
commit1e204ddb3bc960b25b9d0c451df85529ec744283 (patch)
treeadbb8d27815eaf53503dd38f8ed6b97091103231 /src/librustdoc/html/static/js/scrape-examples.js
parent12d3f107c1634ed41a800e220ccf99b665d906d8 (diff)
downloadrust-1e204ddb3bc960b25b9d0c451df85529ec744283.tar.gz
rust-1e204ddb3bc960b25b9d0c451df85529ec744283.zip
Use "strict" mode in JS scripts
Diffstat (limited to 'src/librustdoc/html/static/js/scrape-examples.js')
-rw-r--r--src/librustdoc/html/static/js/scrape-examples.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/js/scrape-examples.js b/src/librustdoc/html/static/js/scrape-examples.js
index 491b3950ae6..70fcef52212 100644
--- a/src/librustdoc/html/static/js/scrape-examples.js
+++ b/src/librustdoc/html/static/js/scrape-examples.js
@@ -4,6 +4,8 @@
 /* eslint prefer-arrow-callback: "error" */
 /* global addClass, hasClass, removeClass, onEachLazy */
 
+"use strict";
+
 (function () {
     // Number of lines shown when code viewer is not expanded
     const MAX_LINES = 10;