diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2014-07-15 11:37:25 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2014-07-17 12:08:31 +1200 |
| commit | aa760a849ee9f4d6817c81aad25fdc7990e894ed (patch) | |
| tree | 8efa4a82b275119ad4733962e5cf1f0fc9117a1e /src/doc/tutorial.md | |
| parent | b35d1a8368c7afe0d43dd3e451e884c035afc517 (diff) | |
deprecate Vec::get
Diffstat (limited to 'src/doc/tutorial.md')
| -rw-r--r-- | src/doc/tutorial.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 10f67876e50..e0f0bbd6c9f 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2427,7 +2427,7 @@ as in this version of `print_all` that copies elements. fn print_all<T: Printable + Clone>(printable_things: Vec<T>) { let mut i = 0; while i < printable_things.len() { - let copy_of_thing = printable_things.get(i).clone(); + let copy_of_thing = printable_things[i].clone(); copy_of_thing.print(); i += 1; } |
