Skip to content

Commit

Permalink
Fix search fn keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 15, 2018
1 parent 1dd1f95 commit e28502e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustdoc/html/static/main.js
Expand Up @@ -465,6 +465,10 @@
var res = buildHrefAndPath(obj);
obj.displayPath = pathSplitter(res[0]);
obj.fullPath = obj.displayPath + obj.name;
if (obj.ty === TY_KEYWORD) {
// To be sure than it isn't considered as duplicate with items.
obj.fullPath += '|k';
}
obj.href = res[1];
out.push(obj);
if (out.length >= MAX_RESULTS) {
Expand Down Expand Up @@ -781,7 +785,7 @@
case "fn":
return (name == "method" || name == "tymethod");
case "type":
return (name == "primitive");
return (name == "primitive" || name == "keyword");
}

// No match
Expand Down

0 comments on commit e28502e

Please sign in to comment.