提交 5ca88ae6 编写于 作者: B bobtwinkles

Fix comment in ExprKind::LogicalOp

The comment previously implied that the true branch would result in the false
block. Fortunately the implementation is correct.
上级 6c04c410
......@@ -104,8 +104,8 @@ pub fn into_expr(&mut self,
// 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(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册