https://issues.dlang.org/show_bug.cgi?id=23967

          Issue ID: 23967
           Summary: 12.14 Array Properties - capacity description
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dlang.org
          Assignee: nob...@puremagic.com
          Reporter: h...@valentimex.com

It says: .capacity      Returns the number of elements that can be appended to
the array without reallocating.

This is wrong as the number of elements that can be appended without
reallocating is a.capacity - a.length (as described in 12.14.2).

--

Reply via email to