Skip to content

Commit

Permalink
Revise sentence to not refer to two subjects as it
Browse files Browse the repository at this point in the history
  • Loading branch information
dane committed Dec 5, 2024
1 parent 397d181 commit 28e974c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch04-02-references-and-borrowing.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Let’s take a closer look at the function call here:
```

The `&s1` syntax lets us create a reference that _refers_ to the value of `s1`
but does not own it. Because it does not own it, the value it points to will
not be dropped when the reference stops being used.
but does not own it. Because the reference does not own it, the value it points
to will not be dropped when the reference stops being used.

Likewise, the signature of the function uses `&` to indicate that the type of
the parameter `s` is a reference. Let’s add some explanatory annotations:
Expand Down

0 comments on commit 28e974c

Please sign in to comment.