fix tutorial example that uses each()
This commit is contained in:
parent
9173508aa4
commit
6cb3ce9772
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue