Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Mar 25, 2023
1 parent a11485e commit 0d39c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -3862,7 +3862,7 @@ if (isInputRange!Range && !isInfinite!Range &&
}

/** Returns an array of the minimum and maximum element in `r`.
* Makes `< 3n/2` comparisons.
* Performs `< 3n/2` comparisons, unlike the naive `< 2n`.
*/
// TODO alias map = a => a
ElementType!Range[2] extrema(Range)(Range r)
Expand Down Expand Up @@ -3915,7 +3915,7 @@ unittest
assert(extrema([2,3,3,2]) == [2, 3]);

version (StdRandomTests)
foreach (i; 0..1000)
foreach (i; 0 .. 1000)
{
import std.random, std.range;
auto arr = generate!(() => uniform(0, 100)).takeExactly(uniform(1, 10)).array;
Expand Down

0 comments on commit 0d39c45

Please sign in to comment.