Skip to content

Commit 50f62a7

Browse files
Merge pull request #1921 from lewisbelcher/patch-1
Update ch04-03-slices.md
2 parents 3970cf3 + 259e594 commit 50f62a7

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
@@ -311,7 +311,7 @@ fn first_word(s: &String) -> &str {
311311
```
312312

313313
A more experienced Rustacean would write the signature shown in Listing 4-9
314-
instead because it allows us to use the same function on both `String` values
314+
instead because it allows us to use the same function on both `&String` values
315315
and `&str` values.
316316

317317
```rust,ignore

0 commit comments

Comments
 (0)