Skip to content

Commit ee6ff69

Browse files
hpaluch-pilemilio
authored andcommitted
Fix panic!() argument (quote it)
1 parent 841fd4c commit ee6ff69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/tutorial-5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ mod tests {
6161
// Finish the compression stream.
6262
let result = BZ2_bzCompressEnd(&mut stream as *mut _);
6363
match result {
64-
r if r == (BZ_PARAM_ERROR as _) => panic!(BZ_PARAM_ERROR),
64+
r if r == (BZ_PARAM_ERROR as _) => panic!("BZ_PARAM_ERROR"),
6565
r if r == (BZ_OK as _) => {},
6666
r => panic!("Unknown return value = {}", r),
6767
}

0 commit comments

Comments
 (0)