Skip to content

Commit

Permalink
Fix std.algorithm.topN example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Ovrum committed Dec 16, 2013
1 parent b8bdef9 commit 09fc88f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions std/algorithm.d
Expand Up @@ -8614,10 +8614,7 @@ unittest
{
int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];
auto n = 4;
topN!(less)(v, n);
assert(v[n] == 9);
// Equivalent form:
topN!("a < b")(v, n);
topN!"a < b"(v, n);
assert(v[n] == 9);
}

Expand Down

0 comments on commit 09fc88f

Please sign in to comment.