Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array.Cap() #138

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Fix array.Cap() #138

merged 1 commit into from
Apr 9, 2024

Conversation

ksw2000
Copy link
Contributor

@ksw2000 ksw2000 commented Apr 3, 2024

The array can be built by calling arrayFromSlice(). We cannot be sure that the cap of the underlying byte slice is the same as its len.

The `array` can be built by calling `arrayFromSlice()`. We cannot be sure that the `cap` of the underlying byte slice is the same as its `len`.
@chewxy
Copy link
Member

chewxy commented Apr 4, 2024

LGTM. Ping me if it's not merged within a day

@coveralls
Copy link

Coverage Status

coverage: 21.555% (+0.02%) from 21.536%
when pulling 4399f62 on ksw2000:fix-array
into 87b8a9a on gorgonia:master.

@chewxy chewxy merged commit 01c8417 into gorgonia:master Apr 9, 2024
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants