Skip to content

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.

irbull added 2 commits July 2, 2024 10:06
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