Skip to content

Commit c80f0b0

Browse files
authored
Merge pull request #1433 from abserari/patch-1
fix compile bug with panic!
2 parents 29d91f5 + beaef7d commit c80f0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/result/question_mark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mod checked {
5454
5555
pub fn op(x: f64, y: f64) {
5656
match op_(x, y) {
57-
Err(why) => panic!(match why {
57+
Err(why) => panic!("{}", match why {
5858
MathError::NonPositiveLogarithm
5959
=> "logarithm of non-positive number",
6060
MathError::DivisionByZero

0 commit comments

Comments
 (0)