Skip to content

Commit

Permalink
Fix typo (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
levinotik authored Mar 21, 2024
1 parent a7d27be commit 8b41d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch04-03-fixing-ownership-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn stringify_name_with_title(name: &Vec<String>) -> String {
}
```

This solution works becauase [`slice::join`] already copies the data in `name` into the string `full`.
This solution works because [`slice::join`] already copies the data in `name` into the string `full`.

In general, writing Rust functions is a careful balance of asking for the *right* level of permissions. For this example, it's most idiomatic to only expect the read permission on `name`.

Expand Down

0 comments on commit 8b41d62

Please sign in to comment.