Compare commits

..

1 Commits

Author SHA1 Message Date
Fabian Schmidt
3dd76c0dfd Add Readme 2024-01-23 11:13:59 +01:00

View File

@ -6,7 +6,7 @@ fn main() {
println!("The longest string is {result}"); println!("The longest string is {result}");
} }
fn longest<'a>(a: &'a str, b: &'a str) -> &'a str { fn longest(a: &str, b: &str) -> &str {
if a.len() > b.len() { if a.len() > b.len() {
a a
} else { } else {