Skip to content

Commit

Permalink
core: vec::filter_map doesn't require a copyable T
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 18, 2012
1 parent 132266b commit d6ded67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ Apply a function to each element of a vector and return the results
If function `f` returns `none` then that element is excluded from
the resulting vector.
"]
fn filter_map<T: copy, U: copy>(v: [T], f: fn(T) -> option<U>)
fn filter_map<T, U: copy>(v: [T], f: fn(T) -> option<U>)
-> [U] {
let mut result = [];
for elem: T in v {
Expand Down

0 comments on commit d6ded67

Please sign in to comment.