We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0a7462 commit 7529d87Copy full SHA for 7529d87
src/librustdoc/html/static/js/search.js
@@ -1609,6 +1609,9 @@ function initSearch(rawSearchIndex) {
1609
for (const [name, id] of typeNameIdMap) {
1610
const dist = editDistance(name, elem.name, maxEditDistance);
1611
if (dist <= matchDist && dist <= maxEditDistance) {
1612
+ if (dist === matchDist && matchName > name) {
1613
+ continue;
1614
+ }
1615
match = id;
1616
matchDist = dist;
1617
matchName = name;
0 commit comments