Skip to content

Commit

Permalink
Merge pull request #1433 from abserari/patch-1
Browse files Browse the repository at this point in the history
fix compile bug with panic!
  • Loading branch information
marioidival authored Apr 8, 2021
2 parents 29d91f5 + beaef7d commit c80f0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/result/question_mark.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod checked {
pub fn op(x: f64, y: f64) {
match op_(x, y) {
Err(why) => panic!(match why {
Err(why) => panic!("{}", match why {
MathError::NonPositiveLogarithm
=> "logarithm of non-positive number",
MathError::DivisionByZero
Expand Down

0 comments on commit c80f0b0

Please sign in to comment.