diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-19 18:59:48 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-19 19:00:04 -0700 |
| commit | 6cb3ce97728f8fa1e0f451708e822a20fabb8be0 (patch) | |
| tree | d3a43ae0c64e350a135855c79479d4efd571634f | |
| parent | 9173508aa461cf7789d3620947ff0ecd3a174a11 (diff) | |
fix tutorial example that uses each()
| -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); } |
