Fix Issue 4847 - std.algorithm.topN documentation

This was a quick fix so I'm doing it online.
This commit is contained in:
Andrei Alexandrescu 2013-03-04 18:39:42 -05:00
parent ba4095de5f
commit 3d5a203323

View file

@ -7911,6 +7911,8 @@ $(BIGOH r.length) (if unstable) or $(BIGOH r.length * log(r.length))
(if stable) evaluations of $(D less) and $(D swap). See also $(WEB (if stable) evaluations of $(D less) and $(D swap). See also $(WEB
sgi.com/tech/stl/nth_element.html, STL's nth_element). sgi.com/tech/stl/nth_element.html, STL's nth_element).
If $(D n >= r.length), the algorithm has no effect.
Examples: Examples:
---- ----
int[] v = [ 25, 7, 9, 2, 0, 5, 21 ]; int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];