Skip to content

Commit c0f3579

Browse files
committed
libcore: vec::u8::hash is pure.
1 parent 628b946 commit c0f3579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ mod u8 {
18771877
pure fn gt(a: &~[u8], b: &~[u8]) -> bool { cmp(a, b) > 0 }
18781878

18791879
/// Byte-vec hash function
1880-
fn hash(s: &~[u8]) -> uint {
1880+
pure fn hash(s: &~[u8]) -> uint {
18811881
hash::hash_bytes(*s) as uint
18821882
}
18831883

0 commit comments

Comments
 (0)