libcore: vec::u8::hash is pure.
This commit is contained in:
@@ -1877,7 +1877,7 @@ mod u8 {
|
|||||||
pure fn gt(a: &~[u8], b: &~[u8]) -> bool { cmp(a, b) > 0 }
|
pure fn gt(a: &~[u8], b: &~[u8]) -> bool { cmp(a, b) > 0 }
|
||||||
|
|
||||||
/// Byte-vec hash function
|
/// Byte-vec hash function
|
||||||
fn hash(s: &~[u8]) -> uint {
|
pure fn hash(s: &~[u8]) -> uint {
|
||||||
hash::hash_bytes(*s) as uint
|
hash::hash_bytes(*s) as uint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user