Skip to content

Commit 6f4717c

Browse files
committed
---
yaml --- r: 11955 b: refs/heads/master c: 3ee4a15 h: refs/heads/master i: 11953: 228a723 11951: 600ec4f v: v3
1 parent af9128e commit 6f4717c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 35e9970e29cfc075968e3a1b9d4e1293ab7ab98b
2+
refs/heads/master: 3ee4a15e5e1be8d1baa529ccf2c64ba4a88abc93
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,11 @@ Apply a function to each element of a vector and return the results
430430
If function `f` returns `none` then that element is excluded from
431431
the resulting vector.
432432
"]
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>)
434434
-> [U] {
435435
let mut result = [];
436436
for elem: T in v {
437-
alt f(copy elem) {
437+
alt f(elem) {
438438
none {/* no-op */ }
439439
some(result_elem) { result += [result_elem]; }
440440
}

0 commit comments

Comments
 (0)