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:
parent
6c04c41034
commit
5ca88ae6ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue