Merge pull request #459 from zyw271828/master

Fix typo
This commit is contained in:
KaiserY 2020-08-15 00:03:26 +08:00 committed by GitHub
commit da7344e206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
#### 字符串字面值就是 slice #### 字符串字面值就是 slice
还记得我们讲到过字符串字面值被储存在二进制文件中吗。现在知道 slice 了,我们就可以正确的理解字符串字面值了: 还记得我们讲到过字符串字面值被储存在二进制文件中吗?现在知道 slice 了,我们就可以正确地理解字符串字面值了:
```rust ```rust
let s = "Hello, world!"; let s = "Hello, world!";