rust-lang / wg-allocators

Home of the Allocators working group: Paving a path for a standard set of allocator traits to be used in collections!
http://bit.ly/hello-wg-allocators
203 stars 9 forks source link

Wrong arguments order in with_capacity_in #98

Open A1-Triard opened 2 years ago

A1-Triard commented 2 years ago

In Rust standard library functions with name ending with a prefix or a conjunction (e.g. or, or_else, and_then, etc.) have the parameter, to which the particle (prefix or conjunction) refers, first in parameters list.

I believe, with_capacity_in should follow the same rule, and have the alloc as the first argument, not second.