Skip to content

Commit 9581f19

Browse files
committed
search.js: give pathSplitter a type signature
1 parent 78b92f0 commit 9581f19

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -2740,7 +2740,11 @@ class DocSearch {
27402740
return [displayPath, href, `${exactPath}::${name}`];
27412741
};
27422742

2743-
// @ts-expect-error
2743+
/**
2744+
*
2745+
* @param {string} path
2746+
* @returns {string}
2747+
*/
27442748
function pathSplitter(path) {
27452749
const tmp = "<span>" + path.replace(/::/g, "::</span><span>");
27462750
if (tmp.endsWith("<span>")) {

0 commit comments

Comments
 (0)