diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-08-29 21:20:10 -0700 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-08-30 20:40:52 -0700 |
| commit | c0f357924d8c96d2f8510055ecd79ed0f3e1840b (patch) | |
| tree | e96bb3b1766172214c1be05ef9c7d775d9dcef15 /src/libcore/vec.rs | |
| parent | 628b94618695fdf24b5b8cc9f56af6d86efa265d (diff) | |
libcore: vec::u8::hash is pure.
Diffstat (limited to 'src/libcore/vec.rs')
| -rw-r--r-- | src/libcore/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 448678abf7c..984092e9a58 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -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 } |
