Skip to content

Commit 2600db4

Browse files
committed
(core::str) added FIXME comment
1 parent 07ef368 commit 2600db4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/str.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,8 @@ fn rindex(ss: str, cc: char) -> option<uint> {
880880
//
881881
// Find the char position of the first instance of one string
882882
// within another, or return option::none
883+
//
884+
// FIXME: Boyer-Moore should be significantly faster
883885
fn find_bytes(haystack: str, needle: str) -> option<uint> {
884886
let haystack_len = len_bytes(haystack);
885887
let needle_len = len_bytes(needle);

0 commit comments

Comments
 (0)