diff options
| -rw-r--r-- | doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 92b38c4fe37..051d9e22893 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1237,7 +1237,7 @@ assert !crayons.is_empty(); // Iterate over a vector, obtaining a pointer to each element for crayons.each |crayon| { - let delicious_crayon_wax = unwrap_crayon(crayon); + let delicious_crayon_wax = unwrap_crayon(*crayon); eat_crayon_wax(delicious_crayon_wax); } |
