Skip to content

Commit fef4c61

Browse files
committed
---
yaml --- r: 22053 b: refs/heads/snap-stage3 c: e0d5d03 h: refs/heads/master i: 22051: cd720d0 v: v3
1 parent 5395545 commit fef4c61

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ef23d77633484e4e85f8b37431e3b08ede3e4802
4+
refs/heads/snap-stage3: e0d5d034513f21859b587a0a0b043967cda62f97
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/tuple.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<T: Copy, U: Copy> (T, U): TupleOps<T,U> {
3636

3737
trait ExtendedTupleOps<A,B> {
3838
fn zip() -> ~[(A, B)];
39-
fn map<C>(f: fn(A, B) -> C) -> ~[C];
39+
fn map<C>(f: &fn(A, B) -> C) -> ~[C];
4040
}
4141

4242
impl<A: Copy, B: Copy> (&[A], &[B]): ExtendedTupleOps<A,B> {
@@ -46,7 +46,7 @@ impl<A: Copy, B: Copy> (&[A], &[B]): ExtendedTupleOps<A,B> {
4646
vec::zip_slice(a, b)
4747
}
4848

49-
fn map<C>(f: fn(A, B) -> C) -> ~[C] {
49+
fn map<C>(f: &fn(A, B) -> C) -> ~[C] {
5050
let (a, b) = self;
5151
vec::map2(a, b, f)
5252
}
@@ -60,7 +60,7 @@ impl<A: Copy, B: Copy> (~[A], ~[B]): ExtendedTupleOps<A,B> {
6060
vec::zip(move a, move b)
6161
}
6262

63-
fn map<C>(f: fn(A, B) -> C) -> ~[C] {
63+
fn map<C>(f: &fn(A, B) -> C) -> ~[C] {
6464
// FIXME #2543: Bad copy
6565
let (a, b) = copy self;
6666
vec::map2(a, b, f)

0 commit comments

Comments
 (0)