reached lifetimes

This commit is contained in:
Abrar Habib 2023-04-04 17:19:57 -04:00
parent b3bf533eb1
commit 75cb101584

View File

@ -9,7 +9,7 @@
// I AM NOT DONE // I AM NOT DONE
fn longest(x: &str, y: &str) -> &str { fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
if x.len() > y.len() { if x.len() > y.len() {
x x
} else { } else {