diff --git a/src/basic/lifetime.md b/src/basic/lifetime.md index 3fdc5c05..0e125c83 100644 --- a/src/basic/lifetime.md +++ b/src/basic/lifetime.md @@ -98,9 +98,7 @@ fn main() { let result = longest(string1.as_str(), string2); println!("The longest string is {}", result); } -``` -```rust fn longest(x: &str, y: &str) -> &str { if x.len() > y.len() { x