(core::str) added FIXME comment

This commit is contained in:
Kevin Cantu 2012-02-13 02:17:19 -08:00
parent 07ef368c60
commit 2600db4778

View file

@ -880,6 +880,8 @@ fn rindex(ss: str, cc: char) -> option<uint> {
// //
// Find the char position of the first instance of one string // Find the char position of the first instance of one string
// within another, or return option::none // within another, or return option::none
//
// FIXME: Boyer-Moore should be significantly faster
fn find_bytes(haystack: str, needle: str) -> option<uint> { fn find_bytes(haystack: str, needle: str) -> option<uint> {
let haystack_len = len_bytes(haystack); let haystack_len = len_bytes(haystack);
let needle_len = len_bytes(needle); let needle_len = len_bytes(needle);