-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pointer::pop_back
: Correctly handle empty strings
Empty strings weren't correctly handled in `pop_back`: When calling `pop_back` for the pointer `//`, it would leave an empty string for `Pointer::inner` and `Pointer::count` at 1. Which is obviously wrong and leaves `Pointer` inconsistent. I also synchronized `fn back` with this, although in this case it was correct.
- Loading branch information
ow
committed
Mar 12, 2024
1 parent
0b604ee
commit f556c22
Showing
1 changed file
with
55 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters