Skip to content

fix: ChunkString return empty slice for empty string#797

Open
LikimiaD wants to merge 1 commit intosamber:masterfrom
LikimiaD:fix/788-chunkstring-returns-empty-slice
Open

fix: ChunkString return empty slice for empty string#797
LikimiaD wants to merge 1 commit intosamber:masterfrom
LikimiaD:fix/788-chunkstring-returns-empty-slice

Conversation

@LikimiaD
Copy link
Contributor

@LikimiaD LikimiaD commented Feb 13, 2026

Fixes #788

Fixed ChunkString("", n) to return an empty slice.
Also attempted to update md files.

@LikimiaD LikimiaD force-pushed the fix/788-chunkstring-returns-empty-slice branch from e9f7027 to 60f0eb8 Compare February 13, 2026 20:00
@LikimiaD LikimiaD changed the title fix: ChunkString empty input fix: ChunkString return empty slice for empty input Feb 13, 2026
Copy link
Contributor Author

@LikimiaD LikimiaD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes.
No unnecessary code or trailing empty lines.

@LikimiaD LikimiaD marked this pull request as ready for review February 13, 2026 20:03
@LikimiaD LikimiaD force-pushed the fix/788-chunkstring-returns-empty-slice branch from 60f0eb8 to 67f4c86 Compare February 13, 2026 20:07
@LikimiaD LikimiaD changed the title fix: ChunkString return empty slice for empty input fix: ChunkString return empty slice for empty string Feb 13, 2026
@samber samber added breaking change Introduces changes that break backward compatibility or alter the public API. bug Something isn't working as expected labels Feb 14, 2026
@samber samber added this to the v2 milestone Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that break backward compatibility or alter the public API. bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2] ChunkString behavior inconsistency with Chunk for empty input

2 participants