Skip to content

Commit

Permalink
Merge pull request #4396 from qznc/comment-cleanup
Browse files Browse the repository at this point in the history
Removed outdated comment
  • Loading branch information
schveiguy committed Jun 2, 2016
2 parents 5529e7a + 9d77777 commit c988d6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions std/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -1841,8 +1841,6 @@ if (isRandomAccessRange!R1 && hasLength!R1 && hasSlicing!R1 && isBidirectionalRa
}
// Found a match with the last element in the needle
auto cand = haystack[scout + 1 - needleLength .. haystack.length];
// This intermediate creation of a slice is why the
// random access variant above is faster.
if (startsWith!pred(cand, needle))
{
// found
Expand Down

0 comments on commit c988d6d

Please sign in to comment.