http://d.puremagic.com/issues/show_bug.cgi?id=4538

           Summary: Listed complexity of reverse() is incorrect
           Product: D
           Version: 2.030
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nob...@puremagic.com
        ReportedBy: justin.spahrsumm...@gmail.com


--- Comment #0 from Justin Spahr-Summers <justin.spahrsumm...@gmail.com> 
2010-07-30 21:10:10 CDT ---
Really minor issue, but I noticed that the complexity of reverse() -- in terms
of calls to swap() -- is incorrect in the Phobos2 documentation. It states:

   Reverses r in-place. Performs r.length evaluations of swap.

when reversal should actually only perform, and assumably does perform,
r.length / 2 evaluations of swap().

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to