Skip to content

Commit 39035f6

Browse files
committed
---
yaml --- r: 6021 b: refs/heads/master c: 49e8ffa h: refs/heads/master i: 6019: 5973e65 v: v3
1 parent ea3ef11 commit 39035f6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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: 2e8a8390d5b6e604a908e01b925f3ef003e4a68d
2+
refs/heads/master: 49e8ffa34f3d66410e733e873894ddf366d23d2d

trunk/src/lib/list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ fn has<T>(ls: list<T>, elt: T) -> bool {
9595
}
9696

9797
/*
98-
Function: length
98+
Function: len
9999
100100
Returns the length of a list
101101
*/
102-
fn length<T>(ls: list<T>) -> uint {
102+
fn len<T>(ls: list<T>) -> uint {
103103
fn count<T>(_t: T, &&u: uint) -> uint { ret u + 1u; }
104104
ret foldl(ls, 0u, bind count(_, _));
105105
}

trunk/src/test/stdtest/list.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ fn test_has() {
5959
}
6060

6161
#[test]
62-
fn test_length() {
62+
fn test_len() {
6363
let l = from_vec([0, 1, 2]);
64-
assert (list::length(l) == 3u);
64+
assert (list::len(l) == 3u);
6565
}
6666

0 commit comments

Comments
 (0)