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: Split bug #301

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix: Split bug #301

wants to merge 2 commits into from

Conversation

irbull
Copy link

@irbull irbull commented Jul 2, 2024

This PR creates a test cases that shows a bug with the split_before and split_after code. This PR fixes the bug and updates the tutorial with details about the issue.

This change-set adds the final code for the sixth example from the
"Learn Rust With Entirely Too Many Linked Lists" book.
Fixes a bug in the tutorial that happened when `split_before` and
`split_after` resulted in an empty split. This was fixed by checking
for an empty split and updating the `front` and `back` pointers
accordingly.

This change-set fixes both the final code and the tutorial text.
@irbull
Copy link
Author

irbull commented Jul 2, 2024

There are 2 commits here. One adds the final sixth.rs code and the second one fixes the issue.

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