We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b76a3d3 commit ca04ce3Copy full SHA for ca04ce3
src/librustdoc/html/static/main.js
@@ -859,7 +859,7 @@ function defocusSearchBar() {
859
for (x = 0; x < vlength; ++x) {
860
var lev = MAX_LEV_DISTANCE + 1;
861
var firstGeneric = getObjectNameFromId(val.generics[x]);
862
- var match = undefined;
+ var match = null;
863
if (elems[firstGeneric]) {
864
match = firstGeneric;
865
lev = 0;
@@ -872,7 +872,7 @@ function defocusSearchBar() {
872
}
873
874
875
- if (match !== undefined) {
+ if (match !== null) {
876
elems[match] -= 1;
877
if (elems[match] == 0) {
878
delete elems[match];
0 commit comments