From 2600db4778dac418309320bed235a1025d84c630 Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Mon, 13 Feb 2012 02:17:19 -0800 Subject: [PATCH] (core::str) added FIXME comment --- src/libcore/str.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 6633586a366..472cbc13fb6 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -880,6 +880,8 @@ fn rindex(ss: str, cc: char) -> option { // // Find the char position of the first instance of one string // within another, or return option::none +// +// FIXME: Boyer-Moore should be significantly faster fn find_bytes(haystack: str, needle: str) -> option { let haystack_len = len_bytes(haystack); let needle_len = len_bytes(needle);