diff --git a/src/basic/lifetime.md b/src/basic/lifetime.md index 36e33dad..e3fe6a1f 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