From 8b6fb2fe269e2032a59dc2332a06ba3266a366d8 Mon Sep 17 00:00:00 2001 From: jwcesign Date: Fri, 15 Mar 2024 16:46:25 +0800 Subject: [PATCH] =?UTF-8?q?cleanup:=20=E4=BB=A3=E7=A0=81=E5=9D=97=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=EF=BC=8C=E4=BE=BF=E4=BA=8E=E7=B2=98=E8=B4=B4=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E7=94=A8=E4=BA=8E=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/basic/lifetime.md | 2 -- 1 file changed, 2 deletions(-) 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