We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fn parse() (from std::str::FromStr) is not working for a bool. I get an error regardless of whether I use "0" or "1".
The text was updated successfully, but these errors were encountered:
I get an error regardless of whether I use "0" or "1".
The values with type bool are true and false. Their corresponding string representations are "true" and "false".
bool
true
false
"true"
"false"
let t: bool = "true".parse().unwrap(); assert_eq!(t, true);
Sorry, something went wrong.
Thank you.
No branches or pull requests
fn parse() (from std::str::FromStr) is not working for a bool. I get an error regardless of whether I use "0" or "1".
The text was updated successfully, but these errors were encountered: