From 71ffa25d8ad322285e2acfbde7211faad9c7294c Mon Sep 17 00:00:00 2001 From: RazvanN7 Date: Fri, 18 Nov 2016 15:04:39 +0200 Subject: [PATCH] added a comment --- std/algorithm/searching.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/std/algorithm/searching.d b/std/algorithm/searching.d index b60b39d83..dad9d10d3 100644 --- a/std/algorithm/searching.d +++ b/std/algorithm/searching.d @@ -1361,7 +1361,8 @@ if (isInputRange!InputRange && alias EType = ElementType!R; - // If the haystack is a SortedRange we can use binary search to find the needle + // If the haystack is a SortedRange we can use binary search to find the needle. + // Works only for the default find predicate and any SortedRange predicate. // 8829 enhancement import std.range: SortedRange; static if(is(typeof(haystack) : SortedRange!TT, TT) && isDefaultPred)