www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18330] New: [topN - multiple declarations] Two autos in


          Issue ID: 18330
           Summary: [topN - multiple declarations] Two autos in
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/library/std/algorithm/sorting.html
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: john.michael.hall gmail.com

On the website, the documentation is showing up as 

auto auto topN(alias less, SwapStrategy ss = SwapStrategy.unstable, Range) (
  Range r,
  size_t nth
if (isRandomAccessRange!Range && hasLength!Range && hasSlicing!Range);

It has two autos listed even though the source code has one auto.

Jan 29 2018