]> git.lizzy.rs Git - rust.git/commitdiff
book: fix a typo
authorKylo Ginsberg <kylo@puppet.com>
Sat, 10 Sep 2016 14:58:30 +0000 (07:58 -0700)
committerKylo Ginsberg <kylo@puppet.com>
Sat, 10 Sep 2016 14:58:30 +0000 (07:58 -0700)
src/doc/book/references-and-borrowing.md

index 57bfbce8b84debab2f26a638ae1aed85ecc491ed..2ec3a00c0df516ab73db23926639712697c0cd50 100644 (file)
@@ -152,7 +152,7 @@ the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well
 If it wasn’t, we couldn’t take a mutable borrow to an immutable value.
 
 You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
-this is because `y` is a `&mut` reference. You'll need to use astrisks to
+this is because `y` is a `&mut` reference. You'll need to use asterisks to
 access the contents of a reference as well.
 
 Otherwise, `&mut` references are like references. There _is_ a large