We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
word
1 parent 8eba927 commit dcba95fCopy full SHA for dcba95f
src/librustdoc/html/static/main.js
@@ -1836,7 +1836,7 @@ function defocusSearchBar() {
1836
function buildIndex(rawSearchIndex) {
1837
searchIndex = [];
1838
var searchWords = [];
1839
- var i;
+ var i, word;
1840
var currentIndex = 0;
1841
var id = 0;
1842
@@ -1905,10 +1905,10 @@ function defocusSearchBar() {
1905
// This object should have exactly the same set of fields as the "crateRow"
1906
// object defined above.
1907
if (typeof itemNames[i] === "string") {
1908
- var word = itemNames[i].toLowerCase();
+ word = itemNames[i].toLowerCase();
1909
searchWords.push(word);
1910
} else {
1911
- var word = "";
+ word = "";
1912
searchWords.push("");
1913
}
1914
var normalizedName = word.indexOf("_") === -1
0 commit comments