mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 23:20:29 +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()
|
||||
{
|
||||
static if (hasLength!R1)
|
||||
static if (estimateNeedleLength)
|
||||
{
|
||||
return haystack.length < estimatedNeedleLength;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue