Skip to content

Commit c05f6bf

Browse files
committed
search.js: give local where a type
1 parent 4f6772d commit c05f6bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -3062,7 +3062,7 @@ class DocSearch {
30623062
name: fnParamNames[-1 - fnType.id],
30633063
highlighted: !!fnType.highlighted,
30643064
}, result);
3065-
// @ts-expect-error
3065+
/** @type{string[]} */
30663066
const where = [];
30673067
onEachBtwn(
30683068
fnType.generics,
@@ -3072,7 +3072,6 @@ class DocSearch {
30723072
() => pushText({ name: " + ", highlighted: false }, where),
30733073
);
30743074
if (where.length > 0) {
3075-
// @ts-expect-error
30763075
whereClause.set(fnParamNames[-1 - fnType.id], where);
30773076
}
30783077
} else {

0 commit comments

Comments
 (0)