// The adult has seen it all, and can handle any drink well.
// All drinks are handled explicitly using `match`.
The adult has seen it all, and can handle any drink well.
All drinks are handled explicitly using `match`.
The adult has seen it all and can handle any drink well . All drinks are handled explicitly using ` match ` .
fn give_adult(drink: Option<&str>) {
    // Specify a course of action for each case.
    match drink {
        Some("lemonade") => println!("Yuck! Too sugary."),
        Some(inner)   => println!("{}? How nice.", inner),
        None          => println!("No drink? Oh well."),
    }
}
fn give_adult ( drink : Option < & str > ) { // Specify a course of action for each case. match drink { Some ( " " ) => println ! ( " " ) , Some ( inner ) => println ! ( " " inner ) , None => println ! ( " " ) , } }
The adult has seen it all, and can handle any drink well.
The adult has seen it all and can handle any drink well .
drink
Option<&str>