Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reworded docs for encoder::Writer::write_chunk() #565

Merged
merged 2 commits into from
Jan 1, 2025

Conversation

Some1and2-XC
Copy link
Contributor

Reworded a section from the write_chunk() method.

I felt as though the previous doc comment's wording was somewhat awkward. I added the size limit as well based on both the code from the function as well as from the png spec.

@kornelski
Copy link
Contributor

I don't see where it panics. It reports Err if the length can't be encoded.

@Some1and2-XC
Copy link
Contributor Author

I don't see where it panics. It reports Err if the length can't be encoded.

Oh I missed that, I'll edit it.

Changed the wording of "panics" to "returns an error".
@kornelski kornelski merged commit 7ab5bb6 into image-rs:master Jan 1, 2025
24 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants