Fix wrong haystack emptiness check in simpleMindedFind.

This commit is contained in:
H. S. Teoh 2012-10-09 21:08:01 -07:00
parent a3289101b1
commit fc1d661f4b

View file

@ -3330,7 +3330,7 @@ unittest
bool haystackTooShort()
{
static if (hasLength!R1)
static if (estimateNeedleLength)
{
return haystack.length < estimatedNeedleLength;
}