Skip to content

12.14 Array Properties - capacity description #4131

Open
@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

Franciszek Czekala reported this on 2023-06-05T05:24:20Z

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

Description

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions