Browse files

Added reference to binary search

  • Loading branch information...
1 parent c8ca17c commit 650609be9b4146db3526b50ccfca6776fed73b51 @andralex committed May 11, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 std/algorithm.d
View
5 std/algorithm.d
@@ -97,7 +97,8 @@ $(TR $(TDNW $(LREF endsWith)) $(TD $(D endsWith("rocks", "ks"))
returns $(D true).)
)
$(TR $(TD $(LREF find)) $(TD $(D find("hello world",
-"or")) returns $(D "orld") using linear search.)
+"or")) returns $(D "orld") using linear search. (For binary search refer
+to $(XREF range,sortedRange).))
)
$(TR $(TDNW $(LREF findAdjacent)) $(TD $(D findAdjacent([1, 2,
3, 3, 4])) returns the subrange starting with two equal adjacent
@@ -8772,7 +8773,7 @@ unittest
assert(b[0] == tuple(4.0, 2u));
}
-unittest//Issue 6217
+unittest//Issue 6217
{
auto x = map!"a"([1,2,3]);
x = move(x);

0 comments on commit 650609b

Please sign in to comment.