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
From the trait:
/** If this value is `true`, panics with `msg`; does nothing otherwise. */ fn expect(self, msg: &str);
From the impl for bool:
fn expect(self, msg: &str) { if self { () } else { panic!("{}", msg) } }
The trait description should say "If this value is false".
I love the test comments, by the way.
The text was updated successfully, but these errors were encountered:
6bd7786
No branches or pull requests
From the trait:
From the impl for bool:
The trait description should say "If this value is false".
I love the test comments, by the way.
The text was updated successfully, but these errors were encountered: