Fix comment in ExprKind::LogicalOp

The comment previously implied that the true branch would result in the false
block. Fortunately the implementation is correct.
This commit is contained in:
bobtwinkles 2018-01-22 17:15:06 -05:00
parent 6c04c41034
commit 5ca88ae6ae

View file

@ -104,8 +104,8 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
// Or:
//
// [block: If(lhs)] -false-> [else_block: If(rhs)] -true-> [true_block]
// | | (false)
// +----------true------------+-------------------> [false_block]
// | (true) | (false)
// [true_block] [false_block]
let (true_block, false_block, mut else_block, join_block) =
(this.cfg.start_new_block(), this.cfg.start_new_block(),