You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-09-16 17:46:35 +02:00
Introduce 'Idiomatic Rust' learning module (#2800)
This PR introduces: - A new section for the "Idiomatic Rust" learning module - (The beginning of) the section on newtype patterns --------- Co-authored-by: Dmitri Gribenko <gribozavr@gmail.com>
This commit is contained in:
@@ -48,7 +48,8 @@ pub fn replace(
|
||||
["course", "outline"] if course.is_some() => {
|
||||
course.unwrap().schedule()
|
||||
}
|
||||
["course", "outline", course_name] => {
|
||||
["course", "outline", course_name @ ..] => {
|
||||
let course_name = course_name.join(" ");
|
||||
let Some(course) = courses.find_course(course_name) else {
|
||||
return format!("not found - {}", captures[0].to_string());
|
||||
};
|
||||
|
Reference in New Issue
Block a user