Skip to content

Commit 24c7b39

Browse files
committed
---
yaml --- r: 1704 b: refs/heads/master c: 9ad9d37 h: refs/heads/master v: v3
1 parent 9b52e11 commit 24c7b39

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,2 +1,2 @@
11
---
2-
refs/heads/master: 47d650e25bbc9c6ce4a062142f9682b8010bb4da
2+
refs/heads/master: 9ad9d3783dd1d2ac4962b03ba63d0a1ed4d8c00f

trunk/src/lib/list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tag list[T] {
1010
nil;
1111
}
1212

13-
fn foldl[T,U](&list[T] ls, &U u, fn(&T t, U u) -> U f) -> U {
13+
fn foldl[T,U](&list[T] ls, &U u, fn(&T t, &U u) -> U f) -> U {
1414
alt(ls) {
1515
case (cons[T](?hd, ?tl)) {
1616
auto u_ = f(hd, u);
@@ -50,7 +50,7 @@ fn find[T,U](&list[T] ls,
5050
}
5151

5252
fn length[T](&list[T] ls) -> uint {
53-
fn count[T](&T t, uint u) -> uint {
53+
fn count[T](&T t, &uint u) -> uint {
5454
ret u + 1u;
5555
}
5656
ret foldl[T,uint](ls, 0u, bind count[T](_, _));

0 commit comments

Comments
 (0)