Skip to content

Commit 5ca88ae

Browse files
Fix comment in ExprKind::LogicalOp
The comment previously implied that the true branch would result in the false block. Fortunately the implementation is correct.
1 parent 6c04c41 commit 5ca88ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/build/expr/into.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
104104
// Or:
105105
//
106106
// [block: If(lhs)] -false-> [else_block: If(rhs)] -true-> [true_block]
107-
// | | (false)
108-
// +----------true------------+-------------------> [false_block]
107+
// | (true) | (false)
108+
// [true_block] [false_block]
109109

110110
let (true_block, false_block, mut else_block, join_block) =
111111
(this.cfg.start_new_block(), this.cfg.start_new_block(),

0 commit comments

Comments
 (0)