Skip to content

Commit 38009bf

Browse files
author
Kylo Ginsberg
committed
book: fix a typo
1 parent a5f4cc5 commit 38009bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/references-and-borrowing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well
152152
If it wasn’t, we couldn’t take a mutable borrow to an immutable value.
153153

154154
You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
155-
this is because `y` is a `&mut` reference. You'll need to use astrisks to
155+
this is because `y` is a `&mut` reference. You'll need to use asterisks to
156156
access the contents of a reference as well.
157157

158158
Otherwise, `&mut` references are like references. There _is_ a large

0 commit comments

Comments
 (0)