diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 6beda8306e2d..09292fc11612 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -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(v: [T], f: fn(T) -> option) +fn filter_map(v: [T], f: fn(T) -> option) -> [U] { let mut result = []; for elem: T in v {