Skip to content

Commit 6e9e7af

Browse files
committed
Fix comment.
1 parent 3b95bf9 commit 6e9e7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/terminator/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
308308
"std::panicking::panicking" |
309309
"std::rt::panicking" => {
310310
let (lval, block) = destination.expect("std::rt::panicking does not diverge");
311-
// we abort on panic -> `std::rt::panicking` always returns true
311+
// we abort on panic -> `std::rt::panicking` always returns false
312312
let bool = self.tcx.types.bool;
313313
self.write_primval(lval, PrimVal::from_bool(false), bool)?;
314314
self.goto_block(block);

0 commit comments

Comments
 (0)