Skip to content

Commit 36d10b6

Browse files
rustdoc-search: address getAliasPointer nit
Co-authored-by: lolbinarycat <[email protected]>
1 parent dc2015c commit 36d10b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ class DocSearch {
15021502
* @param {number} id
15031503
* @returns {Promise<number|null>}
15041504
*/
1505-
async getAliasPointer(id) {
1505+
async getAliasTarget(id) {
15061506
const ai = this.database.getData("alias");
15071507
if (!ai) {
15081508
return null;
@@ -3767,7 +3767,7 @@ class DocSearch {
37673767
for (const id of aliasResults.matches().entries()) {
37683768
const [name, alias] = await Promise.all([
37693769
this.getName(id),
3770-
this.getAliasPointer(id),
3770+
this.getAliasTarget(id),
37713771
]);
37723772
// the index stores normalized names, but aliases are matched by exact names
37733773
if (name !== null &&
@@ -3859,7 +3859,7 @@ class DocSearch {
38593859
prefixResults.push(handleNameSearch(id));
38603860
const [name, alias] = await Promise.all([
38613861
this.getName(id),
3862-
this.getAliasPointer(id),
3862+
this.getAliasTarget(id),
38633863
]);
38643864
if (name !== null && alias !== null) {
38653865
prefixResults.push(handleAlias(name, alias, 0, 0));
@@ -3883,7 +3883,7 @@ class DocSearch {
38833883
levResults.push(handleNameSearch(id));
38843884
const [name, alias] = await Promise.all([
38853885
this.getName(id),
3886-
this.getAliasPointer(id),
3886+
this.getAliasTarget(id),
38873887
]);
38883888
if (name !== null && alias !== null) {
38893889
levResults.push(handleAlias(
@@ -3906,7 +3906,7 @@ class DocSearch {
39063906
substringResults.push(handleNameSearch(id));
39073907
const [name, alias] = await Promise.all([
39083908
this.getName(id),
3909-
this.getAliasPointer(id),
3909+
this.getAliasTarget(id),
39103910
]);
39113911
if (name !== null && alias !== null) {
39123912
levResults.push(handleAlias(

0 commit comments

Comments
 (0)