mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 07:30:33 +03:00
Fix wrong haystack emptiness check in simpleMindedFind.
This commit is contained in:
parent
a3289101b1
commit
fc1d661f4b
1 changed files with 1 additions and 1 deletions
|
@ -3330,7 +3330,7 @@ unittest
|
||||||
|
|
||||||
bool haystackTooShort()
|
bool haystackTooShort()
|
||||||
{
|
{
|
||||||
static if (hasLength!R1)
|
static if (estimateNeedleLength)
|
||||||
{
|
{
|
||||||
return haystack.length < estimatedNeedleLength;
|
return haystack.length < estimatedNeedleLength;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue