Skip to content

Commit 2eccf18

Browse files
Add comment to prevent having code other than initSearch at the end of search.js
1 parent 6ca4639 commit 2eccf18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustdoc/html/static/js/search.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5872,6 +5872,10 @@ Lev1TParametricDescription.prototype.offsetIncrs3 = /*2 bits per value */ new In
58725872
0xa0fc0000,0x5555ba08,0x55555555,
58735873
]);
58745874

5875+
// ====================
5876+
// WARNING: Nothing should be added below this comment: we need the `initSearch` function to
5877+
// be called ONLY when the whole file has been parsed and loaded.
5878+
58755879
// @ts-expect-error
58765880
function initSearch(searchIndx) {
58775881
rawSearchIndex = searchIndx;

0 commit comments

Comments
 (0)