Skip to content

Commit 26f571b

Browse files
committed
fix: make the reason more understandable
1 parent 1cbfc5c commit 26f571b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch04-03-slices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn first_word(s: &String) -> ?
1717
```
1818

1919
The `first_word` function has a `&String` as a parameter. We don’t want
20-
ownership, so this is fine. But what should we return? We don’t really have a
20+
ownership because we want to keep using the `String` after calling the `first_word` function, so this is fine. But what should we return? We don’t really have a
2121
way to talk about *part* of a string. However, we could return the index of the
2222
end of the word, indicated by a space. Let’s try that, as shown in Listing 4-7.
2323

0 commit comments

Comments
 (0)