Merge pull request #1395 from jwcesign/patch-1

cleanup: 代码块统一,便于粘贴复制用于测试
pull/1397/head
Sunface 8 months ago committed by GitHub
commit 30b1c3f14a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save