Skip to content

Commit b7d14b1

Browse files
committed
Fix jslint warnings
1 parent ca04ce3 commit b7d14b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustdoc/html/static/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ function defocusSearchBar() {
843843
function checkGenerics(obj, val) {
844844
// The names match, but we need to be sure that all generics kinda
845845
// match as well.
846+
var tmp_lev, elem_name;
846847
if (val.generics.length > 0) {
847848
if (obj.length > GENERICS_DATA &&
848849
obj[GENERICS_DATA].length >= val.generics.length) {
@@ -864,8 +865,8 @@ function defocusSearchBar() {
864865
match = firstGeneric;
865866
lev = 0;
866867
} else {
867-
for (var elem_name in elems) {
868-
var tmp_lev = levenshtein(elem_name, firstGeneric);
868+
for (elem_name in elems) {
869+
tmp_lev = levenshtein(elem_name, firstGeneric);
869870
if (tmp_lev < lev) {
870871
lev = tmp_lev;
871872
match = elem_name;

0 commit comments

Comments
 (0)