Skip to content

Commit

Permalink
Remove unneeded extra chars to reduce search-index size
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 11, 2018
1 parent 118e052 commit 2403146
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustdoc/html/markdown.rs
Expand Up @@ -852,7 +852,11 @@ pub fn plain_summary_line(md: &str) -> String {
s.push_str(&t);
}
}
s
if s.len() > 60 {
s.chars().take(60).collect::<String>()
} else {
s
}
}

pub fn markdown_links(md: &str) -> Vec<(String, Option<Range<usize>>)> {
Expand Down

0 comments on commit 2403146

Please sign in to comment.