fn valid_num(num: String) -> Result<(), String> {
    match num.parse::<usize>() {
        Ok(_) => Ok(()),
        Err(_) => Err("Please provide a valid number".to_string())
    }
}
/// Validate the correctness of the user provided number of requests
Validate the correctness of the user provided number of requests
Validate the correctness of the user provided number of requests
fn valid_num(num: String) -> Result<(), String> {
    match num.parse::<usize>() {
        Ok(_) => Ok(()),
        Err(_) => Err("Please provide a valid number".to_string())
    }
}
fn valid_num ( num : String ) -> Result < ( ) , String > { match num . parse :: < usize > ( ) { Ok ( _ ) => Ok ( ( ) ) , Err ( _ ) => Err ( " " . to_string ( ) ) } }
Validate the correctness of the user provided number of requests
Validate the correctness of the user provided number of requests
num
String
num
String