mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-25 00:18:46 +08:00
Remove "same deal"-- redundant with "also" before the code
This commit is contained in:
parent
ba95d0a22f
commit
5352d363f5
@ -201,7 +201,7 @@ This would also work for a `second_word()`:
|
|||||||
fn second_word(s: &String) -> &str {
|
fn second_word(s: &String) -> &str {
|
||||||
```
|
```
|
||||||
|
|
||||||
Same deal. We now have a straightforward API that’s much harder to mess up.
|
We now have a straightforward API that’s much harder to mess up.
|
||||||
|
|
||||||
But what about our error condition from before? Slices also fix that. Using
|
But what about our error condition from before? Slices also fix that. Using
|
||||||
the slice version of `first_word()` will throw an error:
|
the slice version of `first_word()` will throw an error:
|
||||||
|
Loading…
Reference in New Issue
Block a user