Skip to content

Commit

Permalink
Improvement comment explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 25, 2019
1 parent f199627 commit 6aa5a5d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/librustdoc/html/render.rs
Expand Up @@ -1319,8 +1319,11 @@ fn write_minify_replacer<W: Write>(
f,
"R",
Token::Char(ReservedChar::Backline),
// 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) ||
Expand Down

0 comments on commit 6aa5a5d

Please sign in to comment.