mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
remove comment on zero width types.
They should not affect the normal case. It is better they affect the capacity calculation
This commit is contained in:
parent
eca4682787
commit
8269986113
1 changed files with 0 additions and 3 deletions
|
@ -150,9 +150,6 @@ pub const RocList = extern struct {
|
|||
element_width: usize,
|
||||
) usize {
|
||||
var new_capacity: usize = 0;
|
||||
// TODO: I think this shouldn't be done here.
|
||||
// We should have a smarter way to deal with this that doesn't lead
|
||||
// to allocating a refcount for zero width elements.
|
||||
if (element_width == 0) {
|
||||
return requested_length;
|
||||
} else if (old_capacity == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue