mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
add #[inline] to vec::iter
This commit is contained in:
parent
bceea8339a
commit
e65c39c100
@ -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) }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user