about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2021-03-13 09:32:40 -0700
committerGitHub <noreply@github.com>2021-03-13 09:32:40 -0700
commitb76a3d3592f1b7c495501a892f537635a7a313c3 (patch)
tree384a68264996828aa85061cee1e89387a64f9c1d
parent3f70bfa79cdd94a60e6ed17f7d7c46aab3df1414 (diff)
downloadrust-b76a3d3592f1b7c495501a892f537635a7a313c3.tar.gz
rust-b76a3d3592f1b7c495501a892f537635a7a313c3.zip
Update src/librustdoc/html/static/main.js
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
-rw-r--r--src/librustdoc/html/static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 6302c357c8f..6ec97f2e924 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -856,7 +856,7 @@ function defocusSearchBar() {
                         // We need to find the type that matches the most to remove it in order
                         // to move forward.
                         var vlength = val.generics.length;
-                        for (var x = 0; x < vlength; ++x) {
+                        for (x = 0; x < vlength; ++x) {
                             var lev = MAX_LEV_DISTANCE + 1;
                             var firstGeneric = getObjectNameFromId(val.generics[x]);
                             var match = undefined;