Addressed PR comments
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user