Skip to content

Set len of memoization array#1

Open
liamdiprose wants to merge 1 commit intowbrickner:mainfrom
liamdiprose:fix-small-example
Open

Set len of memoization array#1
liamdiprose wants to merge 1 commit intowbrickner:mainfrom
liamdiprose:fix-small-example

Conversation

@liamdiprose
Copy link
Copy Markdown

Hey,

The unsorted function panics because the slice doesn't have the length of the Vector's capacity. This one liner (unsafely) sets the len so the slice has the full size.

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.

1 participant