Skip to content

Commit 29639e3

Browse files
use string
1 parent 48bd321 commit 29639e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5050,11 +5050,11 @@ ${obj.displayPath}<span class="${type}">${name}</span>\
50505050
if (query.proposeCorrectionFrom !== null && isTypeSearch) {
50515051
const orig = query.proposeCorrectionFrom;
50525052
const targ = query.proposeCorrectionTo;
5053-
const parts = [`Type "${orig}" not found and used as generic parameter.`];
5053+
let message = `Type "${orig}" not found and used as generic parameter.`;
50545054
if (targ !== null) {
5055-
parts.push(`Consider searching for "${targ}" instead.`);
5055+
message += ` Consider searching for "${targ}" instead.`;
50565056
}
5057-
correctionOutput = `<h3 class="search-corrections">${parts.join(" ")}</h3>`;
5057+
correctionOutput = `<h3 class="search-corrections">${message}</h3>`;
50585058
}
50595059
if (firstResult.value) {
50605060
if (correctionOutput !== "") {

0 commit comments

Comments
 (0)