Fix Hash's initial_capacity documentation#8569
Fix Hash's initial_capacity documentation#8569straight-shoota merged 1 commit intomasterfrom unknown repository
Conversation
|
Just an idea, since this is a rather arbitrary value afaik, we could have it in a constant |
|
That doesn't sound too bad but I'm pretty sure that would require wrapping the entire constructors with |
|
The default capacity actually isn't really important for users. It's an implementation detail. It's worth mentioning it, but not exposing it as a constant. |
|
We could use a private constant to not expose this, but you're right, it's probably not worth the burden |
|
Thank you @r00ster91 ❤️ |
#8017 changed the default
initial_capacityto 8.