diff --git a/src/std/result/question_mark.md b/src/std/result/question_mark.md index c51cc638f6..a1f7706840 100644 --- a/src/std/result/question_mark.md +++ b/src/std/result/question_mark.md @@ -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