Skip to content

Commit 923fe8f

Browse files
Fix typo in section name
1 parent 21ed8b3 commit 923fe8f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/main.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -408,19 +408,22 @@ fn map_to_line_items<'a>(
408408
let section = if has_tags(o, &["C-future-compatibility"]) {
409409
"Compatibility Notes"
410410
} else if has_tags(o, &["T-libs", "T-libs-api"]) {
411-
"Library"
411+
"Libraries"
412412
} else if has_tags(o, &["T-lang"]) {
413413
"Language"
414414
} else if has_tags(o, &["T-compiler"]) {
415415
"Compiler"
416416
} else {
417417
"Other"
418418
};
419-
by_section.get_mut(section).unwrap().push_str(&format!(
420-
"- [{title}]({url}/)\n",
421-
title = o["title"].as_str().unwrap(),
422-
url = o["url"].as_str().unwrap(),
423-
));
419+
by_section
420+
.get_mut(section)
421+
.expect(section)
422+
.push_str(&format!(
423+
"- [{title}]({url}/)\n",
424+
title = o["title"].as_str().unwrap(),
425+
url = o["url"].as_str().unwrap(),
426+
));
424427
}
425428
}
426429

0 commit comments

Comments
 (0)