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

Empty string gets parsed as 0 #348

Open
DaniPopes opened this issue Jan 5, 2024 · 1 comment
Open

Empty string gets parsed as 0 #348

DaniPopes opened this issue Jan 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@DaniPopes
Copy link
Contributor

Uint::<_, _>::from_str("") always parses successfully as 0.

@prestwich prestwich added the question Further information is requested label Feb 27, 2024
@prestwich
Copy link
Collaborator

this appears to be @recmo 's intended behavior, as there is the parser uses from_base_be and there is no BaseConverError::NoDigits. We could add one in 2.0.0 if we feel there's a compelling reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants