We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f199627 commit 6aa5a5dCopy full SHA for 6aa5a5d
src/librustdoc/html/render.rs
@@ -1319,8 +1319,11 @@ fn write_minify_replacer<W: Write>(
1319
f,
1320
"R",
1321
Token::Char(ReservedChar::Backline),
1322
- // This closure prevents crates' name to be aggregated. It allows to not
1323
- // have to look for crate's name into the strings array.
+ // This closure prevents crates' names from being aggregated.
+ //
1324
+ // The point here is to check if the string is preceded by '[' and
1325
+ // "searchIndex". If so, it means this is a crate name and that it
1326
+ // shouldn't be aggregated.
1327
|tokens, pos| {
1328
pos < 2 ||
1329
!tokens[pos - 1].is_char(ReservedChar::OpenBracket) ||
0 commit comments