📄 ex04b.rs
/home/palash/git/misc/rust/rust101/src/bin/ex04b.rs
Language: rs • Lines: 11
// Topic: match with catch all
fn main() {
    for i in 0..5 {
        match i {
            1 => println!("one"),
            2 => println!("two"),
            3 => println!("three"),
            _ => println!("value out of bounds"),
        }
    }
}