Skip to content
Browse files

Improvement comment explanations

  • Loading branch information...
GuillaumeGomez committed Apr 25, 2019
1 parent f199627 commit 6aa5a5df965db2d6f567fe34a316b5f4e0234c15
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/librustdoc/html/
@@ -1319,8 +1319,11 @@ fn write_minify_replacer<W: Write>(
// This closure prevents crates' name to be aggregated. It allows to not
// have to look for crate's name into the strings array.
// This closure prevents crates' names from being aggregated.
// The point here is to check if the string is preceded by '[' and
// "searchIndex". If so, it means this is a crate name and that it
// shouldn't be aggregated.
|tokens, pos| {
pos < 2 ||
!tokens[pos - 1].is_char(ReservedChar::OpenBracket) ||

0 comments on commit 6aa5a5d

Please sign in to comment.
You can’t perform that action at this time.