Skip to content

Commit

Permalink
fix slipped through style violations
Browse files Browse the repository at this point in the history
  • Loading branch information
wilzbach committed Jun 4, 2016
1 parent cf3060b commit 823203f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion std/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,8 @@ if (isRandomAccessRange!R1 && hasLength!R1 && hasSlicing!R1 && isBidirectionalRa
if (!binaryFun!pred(haystack[k + i], needle[i]))
break;
}
if (skip == 0) {
if (skip == 0)
{
skip = 1;
while (skip < needleLength && needle[needleLength - 1 - skip] != needle[needleLength - 1])
{
Expand Down
2 changes: 1 addition & 1 deletion std/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ private ptrdiff_t indexOfAnyNeitherImpl(bool forward, bool any, Char, Char2)(
}
else
{
import std.range.primitives: walkLength;
import std.range.primitives : walkLength;
if (needles.length <= 16 && needles.walkLength(17))
{
size_t si = 0;
Expand Down

0 comments on commit 823203f

Please sign in to comment.