fix tutorial example that uses each()

This commit is contained in:
Niko Matsakis 2012-09-19 18:59:48 -07:00
parent 9173508aa4
commit 6cb3ce9772

View File

@ -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);
}