Skip to content

Commit 6cb3ce9

Browse files
committed
fix tutorial example that uses each()
1 parent 9173508 commit 6cb3ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ assert !crayons.is_empty();
12371237
12381238
// Iterate over a vector, obtaining a pointer to each element
12391239
for crayons.each |crayon| {
1240-
let delicious_crayon_wax = unwrap_crayon(crayon);
1240+
let delicious_crayon_wax = unwrap_crayon(*crayon);
12411241
eat_crayon_wax(delicious_crayon_wax);
12421242
}
12431243

0 commit comments

Comments
 (0)