From 6cb3ce97728f8fa1e0f451708e822a20fabb8be0 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 19 Sep 2012 18:59:48 -0700 Subject: [PATCH] fix tutorial example that uses each() --- doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }