#why this compiles?
fn main(){
let result;
let string1 = "abcd";
{
let string2 = "xyz";
result = maior(string1, string2);
}
println!("Resulrado = {}",result);
}
fn maior<'a>(x:&'a str,y:&'a str) -> &'a str{
if x.len() > y.len(){
return x;
}
return y;
}