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

Improve docs on ZeroVecError #5117

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Improve docs on ZeroVecError #5117

merged 2 commits into from
Jun 25, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Jun 25, 2024

ParseError { ty: &'static str },
/// The byte buffer was not in the appropriate format for VarZeroVec
/// The byte buffer was not in the appropriate format for VarZeroVec.
/// This error comes from `zerovec` as opposed to a ULE impl.
Copy link
Member

Choose a reason for hiding this comment

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

I think if you have a ZeroVecError you should point out when an error does not come from zerovec. Also, by zerovec, do you mean the crate? Or do you mean (Var)?Zero(Vec|Slice)?

Can this error be split up?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this better?

This is probably a good candidate for a Narrow Error Types treatment, but I'm just currently trying to improve the docs since #5002 didn't use the correct error variant

Copy link
Member

@robertbastian robertbastian left a comment

Choose a reason for hiding this comment

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

better

@sffc sffc merged commit 87ec198 into unicode-org:main Jun 25, 2024
28 checks passed
@sffc sffc deleted the zverror branch June 25, 2024 17:39
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.

None yet

4 participants