libcore: vec::u8::hash is pure.
This commit is contained in:
parent
628b946186
commit
c0f357924d
1 changed files with 1 additions and 1 deletions
|
|
@ -1877,7 +1877,7 @@ mod u8 {
|
|||
pure fn gt(a: &~[u8], b: &~[u8]) -> bool { cmp(a, b) > 0 }
|
||||
|
||||
/// Byte-vec hash function
|
||||
fn hash(s: &~[u8]) -> uint {
|
||||
pure fn hash(s: &~[u8]) -> uint {
|
||||
hash::hash_bytes(*s) as uint
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue