add #[inline] to vec::iter

This commit is contained in:
Niko Matsakis 2012-02-27 17:35:00 -08:00
parent bceea8339a
commit e65c39c100

View File

@ -968,6 +968,7 @@ Iterates over vector `v` and, for each element, calls function `f` with the
element's value.
*/
#[inline]
fn iter<T>(v: [const T], f: fn(T)) {
iteri(v) { |_i, v| f(v) }
}