stevedonovan/gentle-intro

multichar chars in malformed match in 2-structs

Closed this issue · 3 comments

fn how(i: u32) -> &'static str {
    match i {
    0: 'none',
    1: 'one',
    _: 'many'
    }
}

->

fn how(i: u32) -> &'static str {
    match i {
        0 => "none",
        1 => "one",
        _ => "many"
    }
}

@stevedonovan you forgot the multichar char literals :)