fn output_guess(guess: u8, correct: u8) -> () {
    if guess < correct {
        println!("{}", "\nToo low!".yellow());
    } else if guess > correct {
        println!("{}", "\nToo high!".yellow());
    } else {
        println!("{}", "\nYou got it. Congrats!".green());
    }
}
/// Checks whether the user guess is correct or not.
/// Also prints if is too low or too high.
Checks whether the user guess is correct or not.
Also prints if is too low or too high.
Checks whether the user guess is correct or not . Also prints if is too low or too high .
fn output_guess(guess: u8, correct: u8) -> () {
    if guess < correct {
        println!("{}", "\nToo low!".yellow());
    } else if guess > correct {
        println!("{}", "\nToo high!".yellow());
    } else {
        println!("{}", "\nYou got it. Congrats!".green());
    }
}
fn output_guess ( guess : u8 , correct : u8 ) -> ( ) { if guess < correct { println ! ( " " " \n " yellow ( ) ) ; } else if guess > correct { println ! ( " " " \n " yellow ( ) ) ; } else { println ! ( " " " \n " green ( ) ) ; } }
Checks whether the user guess is correct or not.
Checks whether the user guess is correct or not .
guess
u8
correct
u8
guess
u8
correct
u8