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

Rust-Version: sorting [1,2,3] * 10 crashes #6

Open
ghost opened this issue Apr 24, 2022 · 0 comments · May be fixed by #8
Open

Rust-Version: sorting [1,2,3] * 10 crashes #6

ghost opened this issue Apr 24, 2022 · 0 comments · May be fixed by #8

Comments

@ghost
Copy link

ghost commented Apr 24, 2022

Here is the code:

let mut a = Vec::from_iter(1..=3).repeat(10);
let l = a.len();
grail_sort(&mut a, l);

thread 'main' panicked at 'index out of bounds: the len is 30 but the index is 31

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 a pull request may close this issue.

0 participants