File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 35e9970e29cfc075968e3a1b9d4e1293ab7ab98b
2
+ refs/heads/master: 3ee4a15e5e1be8d1baa529ccf2c64ba4a88abc93
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -430,11 +430,11 @@ Apply a function to each element of a vector and return the results
430
430
If function `f` returns `none` then that element is excluded from
431
431
the resulting vector.
432
432
" ]
433
- fn filter_map < T : copy , U : copy > ( v : [ const T ] , f : fn ( T ) -> option < U > )
433
+ fn filter_map < T : copy , U : copy > ( v : [ T ] , f : fn ( T ) -> option < U > )
434
434
-> [ U ] {
435
435
let mut result = [ ] ;
436
436
for elem: T in v {
437
- alt f( copy elem) {
437
+ alt f( elem) {
438
438
none { /* no-op */ }
439
439
some( result_elem) { result += [ result_elem] ; }
440
440
}
You can’t perform that action at this time.
0 commit comments