From 3e38d10bc7c8468b92342bb0c53e932767510318 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Wed, 24 Sep 2025 22:03:01 -0400 Subject: [PATCH] Fix typo in section name --- src/main.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3091115..2eda2fc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -408,7 +408,7 @@ fn map_to_line_items<'a>( let section = if has_tags(o, &["C-future-compatibility"]) { "Compatibility Notes" } else if has_tags(o, &["T-libs", "T-libs-api"]) { - "Library" + "Libraries" } else if has_tags(o, &["T-lang"]) { "Language" } else if has_tags(o, &["T-compiler"]) { @@ -416,11 +416,14 @@ fn map_to_line_items<'a>( } else { "Other" }; - by_section.get_mut(section).unwrap().push_str(&format!( - "- [{title}]({url}/)\n", - title = o["title"].as_str().unwrap(), - url = o["url"].as_str().unwrap(), - )); + by_section + .get_mut(section) + .expect(section) + .push_str(&format!( + "- [{title}]({url}/)\n", + title = o["title"].as_str().unwrap(), + url = o["url"].as_str().unwrap(), + )); } }