1
Fork 0

Update src/librustdoc/html/static/main.js

Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
This commit is contained in:
Michael Howell 2021-03-13 09:32:40 -07:00 committed by GitHub
parent 3f70bfa79c
commit b76a3d3592
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;