-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
str::from_bytes should return a Result instead of fail on invalid input. #4765
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Comments
See discussion on #1945 -- the right thing to do here would be to use conditions, I think. |
This should be pretty simple -- working on it. |
Fixed pending #6920 |
catamorphism
added a commit
to catamorphism/rust
that referenced
this issue
Jun 8, 2013
3fc0524 fixes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
It seems to me that returning a Result would be more appropriate than failing.
https://github.com/mozilla/rust/blob/incoming/src/libcore/str.rs#L50
The text was updated successfully, but these errors were encountered: