Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jun 11, 2024
1 parent 6d3ecf4 commit 6cf7ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"use strict";


(function() {
(function () {
let rawSearchIndex;
let docSearch;
const longItemTypes = [
Expand Down Expand Up @@ -601,7 +601,7 @@ ${item.displayPath}<span class="${type}">${name}</span>\
if (typeof window !== "undefined") {
docSearch = new window.DocSearch(rawSearchIndex);
} else if (typeof exports !== "undefined") {
exports.docSearch = new exports.DocSearch(rawSearchIndex);
exports.docSearch = new DocSearch(rawSearchIndex);
}
}

Expand Down

0 comments on commit 6cf7ebc

Please sign in to comment.