Skip to content

Commit e65c39c

Browse files
committed
add #[inline] to vec::iter
1 parent bceea83 commit e65c39c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ Iterates over vector `v` and, for each element, calls function `f` with the
968968
element's value.
969969
970970
*/
971+
#[inline]
971972
fn iter<T>(v: [const T], f: fn(T)) {
972973
iteri(v) { |_i, v| f(v) }
973974
}

0 commit comments

Comments
 (0)