From e0afc9414f3e22accfe635c9e89bd24f7be629cd Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 24 Jan 2024 09:28:09 +0100 Subject: [PATCH] doc --- src/utils.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.rs b/src/utils.rs index aafbd23..ccf0352 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -184,6 +184,7 @@ impl Capitalize for str { } } +/// Get all hours used the source, from 08:00 to at least 20:00 pub fn get_hours() -> Arc<[String]> { let mut hours = vec![]; for hour in 8..=20 { @@ -223,6 +224,7 @@ pub fn get_entry(course: &Course) -> String { format!("{} - {:?}", course.name, course.category) } +/// Returns a couple of (list of courses) and (a hashmap of how much they appears in the vector) pub fn get_count<'a>( timetable: &'a mut Timetable, allowed_list: &'a [Category],