1
Fork 0

Addressed PR comments

This commit is contained in:
Marvin Löbel 2015-02-19 14:36:58 +01:00
parent a641996796
commit c8dd2d066d
18 changed files with 237 additions and 90 deletions

View file

@ -1469,7 +1469,7 @@ fn full_path(cx: &Context, item: &clean::Item) -> String {
fn shorter<'a>(s: Option<&'a str>) -> &'a str {
match s {
Some(s) => match s.find_str("\n\n") {
Some(s) => match s.find("\n\n") {
Some(pos) => &s[..pos],
None => s,
},