June 05, 2023
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: nobody@puremagic.com
          Reporter: home@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).

--