diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-12 23:38:53 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-12 23:38:53 -0700 |
| commit | 16eb06c246f76bdfdda9aab978e57fb6171d6f7b (patch) | |
| tree | df703981e3f5b61f1e047b322ea6bb7a8013f029 /src/libcore | |
| parent | 93a1f5e85fb2d17c4dfca7a282d9bf6805dfaa16 (diff) | |
| download | rust-16eb06c246f76bdfdda9aab978e57fb6171d6f7b.tar.gz rust-16eb06c246f76bdfdda9aab978e57fb6171d6f7b.zip | |
Annotate FIXMEs in core::vec
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/vec.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 96bdf9b77c9..0ce1991a6c0 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1136,7 +1136,7 @@ impl extensions<T: copy> for [T] { #[doc = "Unsafe operations"] mod unsafe { - // FIXME: This should have crate visibility + // FIXME: This should have crate visibility (#1893 blocks that) #[doc = "The internal representation of a vector"] type vec_repr = {mut fill: uint, mut alloc: uint, data: u8}; @@ -1228,8 +1228,9 @@ mod u8 { #[doc = "String hash function"] fn hash(&&s: [u8]) -> uint { - // djb hash. - // FIXME: replace with murmur. + /* Seems to have been tragically copy/pasted from str.rs, + or vice versa. But I couldn't figure out how to abstract + it out. -- tjc */ let mut u: uint = 5381u; vec::iter(s, { |c| u *= 33u; u += c as uint; }); |
