错误修正

联系上下文,这里应该是要表达否定含义
pull/927/head
Aimer Neige 2 years ago committed by GitHub
parent d8a4181432
commit 091e57a38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -99,7 +99,7 @@ let slice = &s[..];
字符串切片的类型标识是 `&str`,因此我们可以这样声明一个函数,输入 `String` 类型,返回它的切片: `fn first_word(s: &String) -> &str `
有了切片就可以写出这样的安全代码:
有了切片就可以写出这样的安全代码:
```rust
fn main() {

Loading…
Cancel
Save