Skip to content

Commit 16eb06c

Browse files
committed
Annotate FIXMEs in core::vec
1 parent 93a1f5e commit 16eb06c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/vec.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ impl extensions<T: copy> for [T] {
11361136

11371137
#[doc = "Unsafe operations"]
11381138
mod unsafe {
1139-
// FIXME: This should have crate visibility
1139+
// FIXME: This should have crate visibility (#1893 blocks that)
11401140
#[doc = "The internal representation of a vector"]
11411141
type vec_repr = {mut fill: uint, mut alloc: uint, data: u8};
11421142

@@ -1228,8 +1228,9 @@ mod u8 {
12281228

12291229
#[doc = "String hash function"]
12301230
fn hash(&&s: [u8]) -> uint {
1231-
// djb hash.
1232-
// FIXME: replace with murmur.
1231+
/* Seems to have been tragically copy/pasted from str.rs,
1232+
or vice versa. But I couldn't figure out how to abstract
1233+
it out. -- tjc */
12331234

12341235
let mut u: uint = 5381u;
12351236
vec::iter(s, { |c| u *= 33u; u += c as uint; });

0 commit comments

Comments
 (0)