Skip to content

Commit 5ee4033

Browse files
committed
---
yaml --- r: 14255 b: refs/heads/try c: 092c244 h: refs/heads/master i: 14253: 973d5c2 14251: 7bd4fae 14247: bf2d555 14239: c87d1d9 v: v3
1 parent 05c2b1a commit 5ee4033

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: ad2f566ff244f442be5c4b304729a534d8a8185c
5+
refs/heads/try: 092c244d3a8ff32a323e08de9c166144e06233a5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/iter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn foldr<A:copy,B,IA:iterable<A>>(
7777
self: IA, +b0: B, blk: fn(A, -B) -> B) -> B {
7878

7979
let b <- b0;
80-
reverse(self) {|a|
80+
reversed(self) {|a|
8181
b = blk(a, b);
8282
}
8383
ret b;
@@ -88,7 +88,7 @@ fn to_list<A:copy,IA:iterable<A>>(self: IA) -> [A] {
8888
}
8989

9090
// FIXME: This could be made more efficient with an riterable interface
91-
fn reverse<A:copy,IA:iterable<A>>(self: IA, blk: fn(A)) {
91+
fn reversed<A:copy,IA:iterable<A>>(self: IA, blk: fn(A)) {
9292
vec::riter(to_list(self), blk)
9393
}
9494

@@ -247,8 +247,8 @@ fn test_max_empty() {
247247
}
248248

249249
#[test]
250-
fn test_reverse() {
251-
assert to_list(bind reverse([1, 2, 3], _)) == [3, 2, 1];
250+
fn test_reversed() {
251+
assert to_list(bind reversed([1, 2, 3], _)) == [3, 2, 1];
252252
}
253253

254254
#[test]

0 commit comments

Comments
 (0)