File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 131
131
}
132
132
133
133
/**
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
+ */
139
139
async function addTab ( array , query , display ) {
140
140
const extraClass = display ? " active" : "" ;
141
141
@@ -206,9 +206,8 @@ ${item.displayPath}<span class="${type}">${name}</span>\
206
206
// digits are the same width. \u{2007} is a Unicode space character
207
207
// that is defined to be the same width as a digit.
208
208
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 } )` ;
212
211
if ( searchState . currentTab === tabNb ) {
213
212
return "<button class=\"selected\">" + text +
214
213
"<span class=\"count\">" + fmtNbElems + "</span></button>" ;
You can’t perform that action at this time.
0 commit comments