Skip to content

Commit f62f1f3

Browse files
committed
Apply suggestions
1 parent 6d3ecf4 commit f62f1f3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@
131131
}
132132

133133
/**
134-
* Render a set of search results for a single tab.
135-
* @param {Array<?>} array - The search results for this tab
136-
* @param {ParsedQuery} query
137-
* @param {boolean} display - True if this is the active tab
138-
*/
134+
* Render a set of search results for a single tab.
135+
* @param {Array<?>} array - The search results for this tab
136+
* @param {ParsedQuery} query
137+
* @param {boolean} display - True if this is the active tab
138+
*/
139139
async function addTab(array, query, display) {
140140
const extraClass = display ? " active" : "";
141141

@@ -206,9 +206,8 @@ ${item.displayPath}<span class="${type}">${name}</span>\
206206
// digits are the same width. \u{2007} is a Unicode space character
207207
// that is defined to be the same width as a digit.
208208
const fmtNbElems =
209-
nbElems < 10 ? `\u{2007}(${nbElems})\u{2007}\u{2007}` :
210-
nbElems < 100 ? `\u{2007}(${nbElems})\u{2007}` :
211-
`\u{2007}(${nbElems})`;
209+
nbElems < 10 ? `\u{2007}(${nbElems})\u{2007}\u{2007}` :
210+
nbElems < 100 ? `\u{2007}(${nbElems})\u{2007}` : `\u{2007}(${nbElems})`;
212211
if (searchState.currentTab === tabNb) {
213212
return "<button class=\"selected\">" + text +
214213
"<span class=\"count\">" + fmtNbElems + "</span></button>";

0 commit comments

Comments
 (0)