📝 docs(config): add documentation for get_rules_by_label function

- add comment to describe the purpose of the function
This commit is contained in:
Jeremiah Russell
2025-10-10 12:42:07 +01:00
committed by Jeremiah Russell
parent fda5f8f472
commit 3673c059f3

View File

@@ -137,7 +137,8 @@ impl Config {
Ok(())
}
fn get_rules_by_label(&self) -> BTreeMap<String, EolRule> {
/// Get a map of the rules indexed by labels
pub fn get_rules_by_label(&self) -> BTreeMap<String, EolRule> {
let mut rbl = BTreeMap::new();
for rule in self.rules.values() {